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>
|
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
|
* 31422: Doc/Zsh/calsys.yo, Functions/Calendar/age: better
|
||||||
heuristic for timestamps in use of :file feature.
|
heuristic for timestamps in use of :file feature.
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,11 @@ files)
|
||||||
_files "$expl[@]" -g '^*.(([tT]|)[gG]|)[zZ](-.)' && return
|
_files "$expl[@]" -g '^*.(([tT]|)[gG]|)[zZ](-.)' && return
|
||||||
else
|
else
|
||||||
_description files expl 'compressed file'
|
_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
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue