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/BSD/Command/_bsd_pkg | |
| parent | 19309: add #q to the start of a glob qualifier in the -g argument (diff) | |
| download | zsh-63b336243fdf5e60058472fa456ed11e75280189.tar zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.gz zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.bz2 zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.lz zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.xz zsh-63b336243fdf5e60058472fa456ed11e75280189.tar.zst zsh-63b336243fdf5e60058472fa456ed11e75280189.zip | |
19387: add (-.) glob qualifier to globs where only files are directly applicable
Diffstat (limited to 'Completion/BSD/Command/_bsd_pkg')
| -rw-r--r-- | Completion/BSD/Command/_bsd_pkg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/BSD/Command/_bsd_pkg b/Completion/BSD/Command/_bsd_pkg index adb93c0d1..8cc1a6230 100644 --- a/Completion/BSD/Command/_bsd_pkg +++ b/Completion/BSD/Command/_bsd_pkg @@ -16,9 +16,9 @@ _bsd_pkg_pkgfiles() { pkgsdir=${PACKAGES:-$portsdir/packages}/All paths=( "${(@)${(@s.:.)PKG_PATH}:#}" ) - _files "$@" -g '*.t[bg]z' && ret=0 - (( $#path )) && _files "$@" -W paths -g '*.t[bg]z' && ret=0 - compadd "$@" - $pkgsdir/*.t[bg]z && ret=0 + _files "$@" -g '*.t[bg]z(-.)' && ret=0 + (( $#path )) && _files "$@" -W paths -g '*.t[bg]z(-.)' && ret=0 + compadd "$@" - $pkgsdir/*.t[bg]z(-.) && ret=0 return ret } |
