* PATCH: _gzip -t and -l
@ 2001-07-31 13:51 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2001-07-31 13:51 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-31 13:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-31 13:51 PATCH: _gzip -t and -l Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).