diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-18 09:57:20 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-18 09:57:20 +0200 |
commit | 33162b0d846a682a6eb9801e64e6347fc36aac02 (patch) | |
tree | b3b21d4ad15bc2b57ae39652da2a08a7accf81be /bin | |
parent | cdbf4dee39cdd3dc083299d88d619effc1e72e14 (diff) |
Fix avoid arguments mistaken as options.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/stream | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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= |