about summary refs log tree commit diff
path: root/Completion/Unix/Command/_gzip
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-07-31 13:54:04 +0000
committerClint Adams <clint@users.sourceforge.net>2001-07-31 13:54:04 +0000
commit1ba5ba91ae0768f2ffe34c6e46483593380cc5f8 (patch)
tree0b602103fb30ae81ac669ad7f205879cace0b6cf /Completion/Unix/Command/_gzip
parent89919a895093babd5c4ea2a053a044332554a848 (diff)
downloadzsh-1ba5ba91ae0768f2ffe34c6e46483593380cc5f8.tar.gz
zsh-1ba5ba91ae0768f2ffe34c6e46483593380cc5f8.tar.xz
zsh-1ba5ba91ae0768f2ffe34c6e46483593380cc5f8.zip
15551: complete presumably compressed files for gzip -t and -l
Diffstat (limited to 'Completion/Unix/Command/_gzip')
-rw-r--r--Completion/Unix/Command/_gzip4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_gzip b/Completion/Unix/Command/_gzip
index dc0399071..46664958d 100644
--- a/Completion/Unix/Command/_gzip
+++ b/Completion/Unix/Command/_gzip
@@ -57,7 +57,9 @@ esac
 
 case "$state" in
 files)
-  (( $+opt_args[-d] || $+opt_args[--decompress] || $+opt_args[--uncompress] )) &&
+  (( $+opt_args[-d] || $+opt_args[--decompress] || $+opt_args[--uncompress] ||
+     $+opt_args[-l] || $+opt_args[--list] ||
+     $+opt_args[-t] || $+opt_args[--test] )) &&
     decompress=yes
   if (( $+opt_args[-r] || $+opt_args[--recursive] )); then
     if [[ -z "$decompress" ]]; then