diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 12:01:46 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 12:01:46 +0000 |
commit | 35b2633ad941966f5fca07b625a594a5b68c0fdb (patch) | |
tree | b54740d014e594ba5d81931cdcdb3387bcf9dfca /Completion/User/_whois | |
parent | bb98460a01ce1f6c1e71f7e401f782c81b71486b (diff) | |
download | zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.tar.gz zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.tar.xz zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.zip |
manual/8639
Diffstat (limited to 'Completion/User/_whois')
-rw-r--r-- | Completion/User/_whois | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/Completion/User/_whois b/Completion/User/_whois index 1e0f7707c..97306871e 100644 --- a/Completion/User/_whois +++ b/Completion/User/_whois @@ -102,7 +102,7 @@ _whois_setup () { if (( $#opts )); then opts="($opts)"; else opts=; fi if [[ $opt = h ]]; then _whois_arguments=("$_whois_arguments[@]" - "${opts}${hostopt}[specify host]:host:_whois_hosts") + "${opts}${hostopt}:host:_whois_hosts") else _whois_arguments=("$_whois_arguments[@]" "${opts}-${opt}[${${(@M)_whois_servers:#*:$opt}%:?}]") @@ -112,11 +112,11 @@ _whois_setup () { } _whois_single () { - local context state line expl + local curcontext="$curcontext" state line expl typeset -A opt_args local tmp host - _arguments \ + _arguments -C \ "$_whois_arguments[@]" \ ':identifier:->identifier' @@ -144,11 +144,11 @@ _whois_single () { } _whois_multi () { - local state line expl + local curcontext="$curcontext" state line expl typeset -A opt_args local tmp host - _arguments \ + _arguments -C \ "$_whois_arguments[@]" \ '*::identifier:->identifier' @@ -189,14 +189,14 @@ _whois_fwhois () { } _whois_hosts () { - _tags any hosts && + _tags hosts && compadd "$@" \ -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' \ - ${_whois_servers%:?} || _hosts "$@" } _whois_ports () { - _tags any ports && compadd "$@" - whois || _ports "$@" + _tags ports && compadd "$@" - whois || _ports "$@" } (( $+functions[_whois:whois.internic.net] )) || @@ -204,10 +204,7 @@ _whois:whois.internic.net () { if (( CURRENT == 1 )); then local expl - _tags any string || return 1 - - _description expl string - compadd "$expl[@]" HELP DOMAIN HOST + _wanted string expl string && compadd "$expl[@]" HELP DOMAIN HOST else _message 'string' fi @@ -218,10 +215,7 @@ _whois:whois.nic.ad.jp () { if (( CURRENT == 1 )); then local expl - _tags any string || return 1 - - _description expl string - compadd HELP DOM NET HOST PERSON CONN COM + _wanted string expl string && compadd HELP DOM NET HOST PERSON CONN COM else _message 'string' fi |