summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-10-25 06:42:49 -0400
committerLibravatar Jeff King <peff@peff.net>2012-10-25 06:42:49 -0400
commit4cd31a6320d28742a79ce3aed3e479670ccc159a (patch)
treee6023d2422eb44254fe7f4620b03348e9cfa52d3 /t/test-lib.sh
parentMerge branch 'nd/attr-match-optim' (diff)
parenttest-lib: Fix say_color () not to interpret \a\b\c in the message (diff)
downloadtgif-4cd31a6320d28742a79ce3aed3e479670ccc159a.tar.xz
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