diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-18 21:47:25 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-18 21:47:25 +0100 |
commit | 1f2b82e9824b552803b0dfb664b65d730c93024e (patch) | |
tree | 1be251eb9762a2e65e78b63f6a9f11dd9a22a05c /bin | |
parent | bc490ff67fd674c2a8377d5d4c9ff9582f8943b4 (diff) |
pkg info: concatenate tags with zsh-builtins
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -752,7 +752,9 @@ function pkg_info { PRIORITY_NAME=$(real_priority "$PRIORITY") } if [[ -r tags ]] { - TAGS=$(cat tags | tr "\n" " " | sed 's/ /, /g' | sed 's/, $//') + TAGS=($(cat tags)) + TAGS=$TAGS + TAGS=${TAGS//[[:space:]]/, } } if [[ -d hooks ]] { HOOKS=$(ls -m hooks) |