about summary refs log tree commit diff
path: root/Completion/User/_ssh
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-13 17:50:30 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-13 17:50:30 +0000
commit8746ae9979dc8cccef856300f14f6d98b4285d5a (patch)
tree21eb594cb028f825ad5583b0a56666b2e7a076dd /Completion/User/_ssh
parentad92f962259d359e561d1c0f657f6a731739b3e1 (diff)
downloadzsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.gz
zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.xz
zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.zip
zsh-workers/8231
Diffstat (limited to 'Completion/User/_ssh')
-rw-r--r--Completion/User/_ssh6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/User/_ssh b/Completion/User/_ssh
index 21ddcdcba..952b99193 100644
--- a/Completion/User/_ssh
+++ b/Completion/User/_ssh
@@ -2,7 +2,7 @@
 
 _ssh () {
   local state lstate line ret=1 expl args
-  typeset -A options
+  typeset -A opt_args
 
   local accounts_users_hosts
 
@@ -143,7 +143,7 @@ _ssh () {
         else
           _description expl 'remote host name'
           _ssh_hosts "$expl[@]" && ret=0
-          if (( ! $+options[-l] )); then
+          if (( ! $+opt_args[-l] )); then
             _description expl 'login name'
             _ssh_users "$expl[@]" -S@ -q && ret=0
           fi
@@ -230,7 +230,7 @@ _ssh_hosts () {
     _combination accounts_users_hosts "users=${IPREFIX/@}" hosts "$@"
   else
     _combination accounts_users_hosts \
-      ${options[-l]:+"users=${options[-l]:q}"} hosts "$@"
+      ${opt_args[-l]:+"users=${opt_args[-l]:q}"} hosts "$@"
   fi
 }