Permalink
Browse files

Explicitly terminate option list of `printf'

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...
1 parent 6600877 commit 13e9fc85c623c165a2a59630e7a12d6eac84c1c8 @lolilolicon committed Oct 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ffcast.bash
View
2 ffcast.bash
@@ -39,7 +39,7 @@ _msg() {
shift || return 0
local fmt=$1
shift || return 0
- printf "$prefix$fmt\n" "$@"
+ printf -- "$prefix$fmt\n" "$@"
}
debug() {

0 comments on commit 13e9fc8

Please sign in to comment.