summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-18 09:57:20 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-18 09:57:20 +0200
commit33162b0d846a682a6eb9801e64e6347fc36aac02 (patch)
treeb3b21d4ad15bc2b57ae39652da2a08a7accf81be /bin
parentcdbf4dee39cdd3dc083299d88d619effc1e72e14 (diff)
Fix avoid arguments mistaken as options.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/stream6
1 files changed, 3 insertions, 3 deletions
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=