From 13e9fc85c623c165a2a59630e7a12d6eac84c1c8 Mon Sep 17 00:00:00 2001 From: lolilolicon Date: Sat, 15 Oct 2011 10:40:54 +0000 Subject: [PATCH] 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. --- ffcast.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffcast.bash b/ffcast.bash index d5d2a1f..ff43190 100755 --- a/ffcast.bash +++ b/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() {