summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-18 21:47:25 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-18 21:47:25 +0100
commit1f2b82e9824b552803b0dfb664b65d730c93024e (patch)
tree1be251eb9762a2e65e78b63f6a9f11dd9a22a05c /bin
parentbc490ff67fd674c2a8377d5d4c9ff9582f8943b4 (diff)
pkg info: concatenate tags with zsh-builtins
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 127b784..6ac832d 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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)