From 95c044372a4b945761940de64eed87c30f2d555e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 29 May 2013 19:21:34 +0100 Subject: 31433: zcat -f doesn't need suffix .gz --- ChangeLog | 3 +++ Completion/Unix/Command/_gzip | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e92942fa1..65f18c2f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2013-05-29 Peter Stephenson + * 31433: Completion/Unix/Command/_gzip: zcat -f doesn't + need files with suffix .gz. + * 31422: Doc/Zsh/calsys.yo, Functions/Calendar/age: better heuristic for timestamps in use of :file feature. diff --git a/Completion/Unix/Command/_gzip b/Completion/Unix/Command/_gzip index 5c88fac39..a90f23273 100644 --- a/Completion/Unix/Command/_gzip +++ b/Completion/Unix/Command/_gzip @@ -82,7 +82,11 @@ files) _files "$expl[@]" -g '^*.(([tT]|)[gG]|)[zZ](-.)' && return else _description files expl 'compressed file' - _files "$expl[@]" -g '*.(([tT]|)[gG]|)[zZ](-.)' && return + if (( $+opt_args[-f] )); then + _files "$expl[@]" && return + else + _files "$expl[@]" -g '*.(([tT]|)[gG]|)[zZ](-.)' && return + fi fi fi ;; -- cgit 1.4.1