diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-09-07 08:39:20 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-09-07 08:39:20 +0000 |
commit | 0fe98894a8a40b0021d7863be9f47df91ad1e28f (patch) | |
tree | 9a6061fd635b39a529f59b7fd9c0707c4d896f4c /Completion/Bsd | |
parent | cceb4703de6973b51bfc7404f00ac9c026d415aa (diff) | |
download | zsh-0fe98894a8a40b0021d7863be9f47df91ad1e28f.tar.gz zsh-0fe98894a8a40b0021d7863be9f47df91ad1e28f.tar.xz zsh-0fe98894a8a40b0021d7863be9f47df91ad1e28f.zip |
stick some `N's into glob patterns (12768)
Diffstat (limited to 'Completion/Bsd')
-rw-r--r-- | Completion/Bsd/_bsd_pkg | 8 | ||||
-rw-r--r-- | Completion/Bsd/_kld | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Completion/Bsd/_bsd_pkg b/Completion/Bsd/_bsd_pkg index f302f8216..6ab057dfc 100644 --- a/Completion/Bsd/_bsd_pkg +++ b/Completion/Bsd/_bsd_pkg @@ -7,7 +7,7 @@ _bsd_pkg_packages() { paths=( "${(@)${(@s.:.)PKG_PATH}:#}" ) _files "$@" -g \*.tgz && ret=0 (( $#path )) && _files "$@" -W paths -g \*.tgz && ret=0 - compadd "$@" - /usr/ports/packages/All/*.tgz && ret=0 + compadd "$@" - /usr/ports/packages/All/*.tgz(N) && ret=0 return ret } @@ -37,7 +37,7 @@ _bsd_pkg() { '-d[remove empty directories]' \ '-f[force deinstallation]' \ '-p:prefix directory:_files -/' \ - '*:package to deinstall:compadd - /var/db/pkg/*(\:t)' + '*:package to deinstall:compadd - /var/db/pkg/*(N\:t)' ;; pkg_info) @@ -57,10 +57,10 @@ _bsd_pkg() { '-R[show list list of installed requiring packages]' \ '-m[show mtree files]' \ '-L[show full pathnames of files]' \ - '-e[test if package is installed]:package name:compadd - /var/db/pkg/*(\:t)' \ + '-e[test if package is installed]:package name:compadd - /var/db/pkg/*(N\:t)' \ '-l:prefix directory:_files -/' \ '-t:mktemp template:_files -/' \ - '(-a)*:package name:compadd - /var/db/pkg/*(\:t)' + '(-a)*:package name:compadd - /var/db/pkg/*(N\:t)' ;; esac } diff --git a/Completion/Bsd/_kld b/Completion/Bsd/_kld index 8fc719ccb..ccecc2a0f 100644 --- a/Completion/Bsd/_kld +++ b/Completion/Bsd/_kld @@ -4,7 +4,7 @@ _kld_module() { local ret=1 - compadd "$@" - /boot/kernel/*.ko(:t) /modules/*.ko(:t) && ret=0 + compadd "$@" - /boot/kernel/*.ko(N:t) /modules/*.ko(N:t) && ret=0 _files "$@" -g \*.ko && ret=0 return ret |