diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2002-08-05 11:37:43 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2002-08-05 11:37:43 +0000 |
commit | ced9b25578d91d1f2eeeeca08a3753ed8e2cebe5 (patch) | |
tree | 8ba1fd5979ff2353bca063e7fbc575a0565a6341 | |
parent | 99755244bd127189d18d1aba8a6a34bfc560caf3 (diff) | |
download | zsh-ced9b25578d91d1f2eeeeca08a3753ed8e2cebe5.tar.gz zsh-ced9b25578d91d1f2eeeeca08a3753ed8e2cebe5.tar.xz zsh-ced9b25578d91d1f2eeeeca08a3753ed8e2cebe5.zip |
17499: BSD pkg_* tools now support bzip2'd packages
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/BSD/Command/_bsd_pkg | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index 88405aa39..3f5d3176f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-08-05 Oliver Kiddle <opk@zsh.org> + + * Akinori Musha: 17499: Completion/BSD/Command/_bsd_pkg: BSD pkg_* + tools now support bzip2'd packages + 2002-08-01 Peter Stephenson <pws@csr.com> * 17497: Src/builtin.c: getopts skipped over zero-length arguments. diff --git a/Completion/BSD/Command/_bsd_pkg b/Completion/BSD/Command/_bsd_pkg index c8bd6d6d5..81b187134 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 \*.tgz && ret=0 - (( $#path )) && _files "$@" -W paths -g \*.tgz && ret=0 - compadd "$@" - $pkgsdir/*.tgz && 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 } |