mirror of
https://github.com/zsh-users/zsh
synced 2024-10-02 22:24:37 +00:00
31433: zcat -f doesn't need suffix .gz
This commit is contained in:
parent
711c103e77
commit
95c044372a
|
@ -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,9 +82,13 @@ files)
|
|||
_files "$expl[@]" -g '^*.(([tT]|)[gG]|)[zZ](-.)' && return
|
||||
else
|
||||
_description files expl 'compressed file'
|
||||
if (( $+opt_args[-f] )); then
|
||||
_files "$expl[@]" && return
|
||||
else
|
||||
_files "$expl[@]" -g '*.(([tT]|)[gG]|)[zZ](-.)' && return
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue