about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-11-20 16:12:20 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-11-20 16:12:20 +0000
commit4eb4d5e0d66e50edb1297ef8c879ead8149c3aef (patch)
tree8e9e18f2ef1f551f4d2054f0bb8156aec62b85d8
parentdcc45ed860f24c2103377f5782bffefbfc12bb63 (diff)
downloadzsh-4eb4d5e0d66e50edb1297ef8c879ead8149c3aef.tar.gz
zsh-4eb4d5e0d66e50edb1297ef8c879ead8149c3aef.tar.xz
zsh-4eb4d5e0d66e50edb1297ef8c879ead8149c3aef.zip
Tweak auto-suffix-removal for _rcp and _scp.
-rw-r--r--ChangeLog7
-rw-r--r--Completion/User/_rlogin4
-rw-r--r--Completion/User/_ssh2
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index af740472c..76e30c67d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-11-20  Bart Schaefer  <schaefer@zsh.org>
+
+	* E. Jay Birkenbilt: 13171, 13172: Completion/User/_rlogin,
+	Completion/User/_ssh: Don't autoremove a trailing `:' after
+	completing a host name, but do autoremove a trailing `@' after
+	completing a user name.
+
 2000-11-15  Bart Schaefer  <schaefer@zsh.org>
 
 	* 13167: Completion/User/_perl_modules: Avoid cd entirely.
diff --git a/Completion/User/_rlogin b/Completion/User/_rlogin
index abc6f116e..f84939ce9 100644
--- a/Completion/User/_rlogin
+++ b/Completion/User/_rlogin
@@ -40,11 +40,11 @@ _rlogin () {
       if compset -P '*:'; then
 	_files && ret=0
       elif compset -P '*@'; then
-        _wanted hosts expl host _rlogin_hosts -S: -q && ret=0
+        _wanted hosts expl host _rlogin_hosts -S: && ret=0
       else
         _alternative \
 	    'files:: _files' \
-	    'hosts:: _rlogin_all_hosts -qS:' \
+	    'hosts:: _rlogin_all_hosts -S:' \
 	    'users:: _rlogin_users -qS@' && ret=0
       fi
     fi
diff --git a/Completion/User/_ssh b/Completion/User/_ssh
index a52de5681..c6a6898f1 100644
--- a/Completion/User/_ssh
+++ b/Completion/User/_ssh
@@ -190,7 +190,7 @@ _ssh () {
         _alternative \
 	    'files:: _files' \
 	    'hosts:host:_ssh_hosts -S:' \
-	    'users:user:_ssh_users -S@' && ret=0
+	    'users:user:_ssh_users -qS@' && ret=0
       fi
     fi
     return ret