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:
parent
89919a8950
commit
1ba5ba91ae
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue