From 1f2b82e9824b552803b0dfb664b65d730c93024e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 18 Mar 2009 21:47:25 +0100 Subject: pkg info: concatenate tags with zsh-builtins --- bin/pkg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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) -- cgit v1.2.3