diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-03-15 16:26:08 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-03-15 16:26:08 +0000 |
commit | 79323d6d41c91860cd05800a06cf8076df5051bd (patch) | |
tree | 0c08a2486422faa6f805589f2f60f640134b455b /Completion/Unix/Command/_netcat | |
parent | 2fa33574f029358dc1597b1ff8700385d7c8332a (diff) | |
download | zsh-79323d6d41c91860cd05800a06cf8076df5051bd.tar.gz zsh-79323d6d41c91860cd05800a06cf8076df5051bd.tar.xz zsh-79323d6d41c91860cd05800a06cf8076df5051bd.zip |
16842: resolve name clash for nc between netcat and the nedit client for
completion and add _pick_variant to resolve program variants in general
Diffstat (limited to 'Completion/Unix/Command/_netcat')
-rw-r--r-- | Completion/Unix/Command/_netcat | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_netcat b/Completion/Unix/Command/_netcat index d5e854e12..082b8afde 100644 --- a/Completion/Unix/Command/_netcat +++ b/Completion/Unix/Command/_netcat @@ -3,6 +3,10 @@ local curcontext="$curcontext" state line expl typeset -A opt_args +# handle name clash with the nedit client +[[ $service = nc ]] && ! _pick_variant netcat=connect nedit -h && + _nedit && return + if (( ! $+_nc_args )); then local help="$(_call_program options nc -h < /dev/null 2>&1)" local -A optionmap |