From 33162b0d846a682a6eb9801e64e6347fc36aac02 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 18 May 2017 09:57:20 +0200 Subject: Fix avoid arguments mistaken as options. --- bin/stream | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/stream') diff --git a/bin/stream b/bin/stream index 6e3ecdb..e6e0f40 100755 --- a/bin/stream +++ b/bin/stream @@ -132,17 +132,17 @@ fi # shellcheck disable=SC2048,SC2059 echo_n() { - printf "$*" + printf -- "$*" } # shellcheck disable=SC2048,SC2059 printf_each() { skel=$1; shift for string in $*; do - printf "$skel" "$string" + printf -- "$skel" "$string" done } uniqwords() { - echo "$@" | tr ' ' '\012' | sort -u + echo_n "$@" | tr ' ' '\012' | sort -u } valuedargcount() { nonempty= -- cgit v1.2.3