From 63b336243fdf5e60058472fa456ed11e75280189 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 21 Jan 2004 13:53:28 +0000 Subject: 19387: add (-.) glob qualifier to globs where only files are directly applicable --- Completion/BSD/Command/_bsd_pkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion/BSD/Command/_bsd_pkg') 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 } -- cgit 1.4.1