summary refs log tree commit diff
diff options
context:
space:
mode:
-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