diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-13 17:50:30 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-13 17:50:30 +0000 |
commit | 8746ae9979dc8cccef856300f14f6d98b4285d5a (patch) | |
tree | 21eb594cb028f825ad5583b0a56666b2e7a076dd /Completion/User/_yp | |
parent | ad92f962259d359e561d1c0f657f6a731739b3e1 (diff) | |
download | zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.gz zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.tar.xz zsh-8746ae9979dc8cccef856300f14f6d98b4285d5a.zip |
zsh-workers/8231
Diffstat (limited to 'Completion/User/_yp')
-rw-r--r-- | Completion/User/_yp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/User/_yp b/Completion/User/_yp index bf8090b6a..e06f42a29 100644 --- a/Completion/User/_yp +++ b/Completion/User/_yp @@ -1,7 +1,7 @@ #compdef ypcat ypmatch yppasswd ypwhich ypset ypserv ypbind yppush yppoll ypxfr domainname local line state ret=1 -typeset -A options +typeset -A opt_args if (( ! $+_yp_cache_maps )); then _yp_cache_maps=( "${(@)${(@f)$(ypwhich -m)}%% *}" ) @@ -93,7 +93,7 @@ if [[ "$state" = map* ]]; then compadd "$expl[@]" -M 'l:.|by=by l:.|=by r:|.=* r:|=*' - \ "$_yp_cache_maps[@]" && ret=0 - if [[ $+options[-t] -eq 0 && "$state" != maponly ]]; then + if [[ $+opt_args[-t] -eq 0 && "$state" != maponly ]]; then _description expl 'nicknames' compadd "$expl[@]" - "$_yp_cache_nicks[@]" && ret=0 fi |