diff options
Diffstat (limited to 'Completion/Unix/Command/_iconv')
-rw-r--r-- | Completion/Unix/Command/_iconv | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Completion/Unix/Command/_iconv b/Completion/Unix/Command/_iconv index 3764c4634..490d70bc8 100644 --- a/Completion/Unix/Command/_iconv +++ b/Completion/Unix/Command/_iconv @@ -2,17 +2,7 @@ local expl curcontext="$curcontext" state line codeset LOCPATH -(( $+_is_gnu )) || typeset -gA _is_gnu -if (( ! $+_is_gnu[$words[1]] )); then - if [[ $(_call_program version $words[1] --version </dev/null 2>/dev/null) = *GNU* ]]; - then - _is_gnu[$words[1]]=yes - else - _is_gnu[$words[1]]= - fi -fi - -if [[ -n "$_is_gnu[$words[1]]" ]]; then +if _pick_variant gnu=GNU unix --version; then _arguments -C \ {'(--from-code --list)-f','(-f --list)--from-code='}'[specify code set of input file]:code set:->codeset' \ |