summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-11-18 19:31:13 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-11-18 19:31:14 -0800
commit3424da1118786209f7ac41dd273e72a081421cd3 (patch)
tree2241ed3255247b72991b501eab2754fc043740b3
parentMerge branch 'bw/config-lift-variable-name-length-limit' into maint (diff)
parenttest-lib: Fix say_color () not to interpret \a\b\c in the message (diff)
downloadtgif-3424da1118786209f7ac41dd273e72a081421cd3.tar.xz
Merge branch 'jc/test-say-color-avoid-echo-escape' into maint
The "say" function in the test scaffolding incorrectly allowed "echo" to interpret "\a" as if it were a C-string asking for a BEL output. * jc/test-say-color-avoid-echo-escape: test-lib: Fix say_color () not to interpret \a\b\c in the message
-rw-r--r--t/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 514282cbdf..489bc80fc1 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -230,7 +230,7 @@ else
say_color() {
test -z "$1" && test -n "$quiet" && return
shift
- echo "$*"
+ printf "%s\n" "$*"
}
fi