1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 06:20:55 +01:00

15551: complete presumably compressed files for gzip -t and -l

This commit is contained in:
Clint Adams 2001-07-31 13:54:04 +00:00
parent 89919a8950
commit 1ba5ba91ae
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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