summaryrefslogtreecommitdiff
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
parent89919a895093babd5c4ea2a053a044332554a848 (diff)
downloadzsh-1ba5ba91ae0768f2ffe34c6e46483593380cc5f8.tar.gz
zsh-1ba5ba91ae0768f2ffe34c6e46483593380cc5f8.zip
15551: complete presumably compressed files for gzip -t and -l
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_gzip4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c2e09180e..7e676d226 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-31 Clint Adams <clint@zsh.org>
+
+ * 15551: Completion/Unix/Command/_gzip: handle -l and -t
+ as done for -d; only complete presumably compressed files.
+
2001-07-31 Sven Wischnowsky <wischnow@zsh.org>
* 15549: Test/Y03arguments.ztst: fix for changed listing layout
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