Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/test-say-color-avoid-echo-escape'
author
Jeff King
<peff@peff.net>
Thu, 25 Oct 2012 10:42:49 +0000
(06:42 -0400)
committer
Jeff King
<peff@peff.net>
Thu, 25 Oct 2012 10:42:49 +0000
(06:42 -0400)
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
t/test-lib.sh
patch
|
blob
|
history
raw
(from parent 1:
70d1825
)
diff --git
a/t/test-lib.sh
b/t/test-lib.sh
index 514282cbdfde7e661dcf17c0e1388c3c03a8d287..489bc80fc1b1ba4066a1fd5ad6d2024d67160ba7 100644
(file)
--- 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