mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
31433: zcat -f doesn't need suffix .gz
This commit is contained in:
parent
711c103e77
commit
95c044372a
2 changed files with 8 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue