summary refs log tree commit diff
path: root/xoptdiff
diff options
context:
space:
mode:
authorStyrsven <sven.a.jonsson@bahnhof.se>2017-12-07 21:04:07 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-12-08 14:40:24 +0100
commitb6fcc0fe8f58fcf03407b92ad6346be2eb6b1a7f (patch)
treee586abdb7304aed854408c1d58c8578c65506bbf /xoptdiff
parent38b70d3794cf0271525547d8d9573a0d98c3e0f4 (diff)
downloadxtools-b6fcc0fe8f58fcf03407b92ad6346be2eb6b1a7f.tar.gz
xtools-b6fcc0fe8f58fcf03407b92ad6346be2eb6b1a7f.tar.xz
xtools-b6fcc0fe8f58fcf03407b92ad6346be2eb6b1a7f.zip
xoptdiff: updated according to comment
Closes: #73 [via git-merge-pr]
Diffstat (limited to 'xoptdiff')
-rwxr-xr-xxoptdiff2
1 files changed, 1 insertions, 1 deletions
diff --git a/xoptdiff b/xoptdiff
index a3355d1..cfee63d 100755
--- a/xoptdiff
+++ b/xoptdiff
@@ -12,7 +12,7 @@ fi
 if [ $# -eq 0 ]; then
 	xbps-query -p build-options -s '' | sed 's/^\([^ ]*\)-.*/\1/'
 else
-	echo "$@" | tr ' ' '\n'
+	printf '%s\n' "$@"
 fi | while read pkg; do
 	comm -23 <(./xbps-src show-options $pkg 2>/dev/null |
 			sed -n '/\(ON\)/s/ *\([^ ]*\):.*/\1/p;