summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_zcat
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_zcat')
-rw-r--r--Completion/Unix/Command/_zcat14
1 files changed, 1 insertions, 13 deletions
diff --git a/Completion/Unix/Command/_zcat b/Completion/Unix/Command/_zcat
index dac7493b2..6dd4ecd7b 100644
--- a/Completion/Unix/Command/_zcat
+++ b/Completion/Unix/Command/_zcat
@@ -1,18 +1,6 @@
#compdef zcat
-(( $+_is_gnu )) || typeset -gA _is_gnu
-
-if (( ! $+_is_gnu[$words[1]] )); then
- if [[ $(_call_program version $words[1] --license </dev/null 2>&1) = *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 --license; then
_gzip "$@"
else
_compress "$@"