1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-01 04:46:08 +02:00

31433: zcat -f doesn't need suffix .gz

This commit is contained in:
Peter Stephenson 2013-05-29 19:21:34 +01:00
parent 711c103e77
commit 95c044372a
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2013-05-29 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 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.

View File

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