Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _gzip -t and -l



Matt Zimmerman points out that gzip -t and -l should
behave as -d, only completing files presumed compressed.
This makes `decompress' somewhat of a misnomer, though.
I'll patch both trees.

Index: Completion/Unix/Command/_gzip
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_gzip,v
retrieving revision 1.1
diff -u -r1.1 _gzip
--- Completion/Unix/Command/_gzip	2001/04/02 11:52:51	1.1
+++ Completion/Unix/Command/_gzip	2001/07/31 13:46:28
@@ -57,7 +57,9 @@
 
 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



Messages sorted by: Reverse Date, Date, Thread, Author