diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2004-01-21 13:53:28 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2004-01-21 13:53:28 +0000 |
commit | 63b336243fdf5e60058472fa456ed11e75280189 (patch) | |
tree | f101df4260c4cef5d32c63456ca98e23d6b54449 /Completion/Unix/Type/_tar_archive | |
parent | 1b530bf152e1ca8c9c135c58a4753899d68db8e4 (diff) | |
download | zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.gz zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.xz zsh-63b336243fdf5e60058472fa456ed11e75280189.zip |
19387: add (-.) glob qualifier to globs where only files are directly applicable
Diffstat (limited to 'Completion/Unix/Type/_tar_archive')
-rw-r--r-- | Completion/Unix/Type/_tar_archive | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Type/_tar_archive b/Completion/Unix/Type/_tar_archive index c5ab0e9fc..95a864cee 100644 --- a/Completion/Unix/Type/_tar_archive +++ b/Completion/Unix/Type/_tar_archive @@ -15,11 +15,11 @@ _description files expl 'archive file' if [[ "$1" = *[urtx]* ]]; then if [[ "$1" = *[zZ]* ]]; then - _files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z)|tgz)' + _files "$expl[@]" -g '*.((tar|TAR).(gz|GZ|Z)|tgz)(-.)' elif [[ "$1" = *[Ijy]* ]]; then - _files "$expl[@]" -g '*.(tar|TAR).bz2' + _files "$expl[@]" -g '*.(tar|TAR).bz2(-.)' else - _files "$expl[@]" -g '*.(tar|TAR)' + _files "$expl[@]" -g '*.(tar|TAR)(-.)' fi else _files "$expl[@]" |