summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-10-25 06:42:49 -0400
committerJeff King <peff@peff.net>2012-10-25 06:42:49 -0400
commit4cd31a6320d28742a79ce3aed3e479670ccc159a (patch)
treee6023d2422eb44254fe7f4620b03348e9cfa52d3 /t/test-lib.sh
parent70d1825749ba1528af507e27ba5f8a660a5ede3d (diff)
parent7bc0911d037f0a144d8c227f58693da0c9c77b2a (diff)
downloadgit-4cd31a6320d28742a79ce3aed3e479670ccc159a.tar.gz
Merge branch 'jc/test-say-color-avoid-echo-escape'
Recent nd/wildmatch series was the first to reveal this ancient bug in the test scaffolding. * jc/test-say-color-avoid-echo-escape: test-lib: Fix say_color () not to interpret \a\b\c in the message
Diffstat (limited to 't/test-lib.sh')
-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