Skip to content

Commit

Permalink
Explicitly terminate option list of `printf'
Browse files Browse the repository at this point in the history
This prevents `printf' from choking on prefixes starting with '-'.
_msg() being a "private" function, this does not really matter, but
when it comes to expression, the more accurate, the better.
  • Loading branch information
ropery committed Oct 15, 2011
1 parent 6600877 commit 13e9fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffcast.bash
Expand Up @@ -39,7 +39,7 @@ _msg() {
shift || return 0
local fmt=$1
shift || return 0
printf "$prefix$fmt\n" "$@"
printf -- "$prefix$fmt\n" "$@"
}

debug() {
Expand Down

0 comments on commit 13e9fc8

Please sign in to comment.