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,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