test-lib: Fix say_color () not to interpret \a\b\c in the message
commit7bc0911d037f0a144d8c227f58693da0c9c77b2a
authorJunio C Hamano <gitster@pobox.com>
Thu, 11 Oct 2012 17:40:36 +0000 (11 10:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Oct 2012 17:40:36 +0000 (11 10:40 -0700)
treeae96192e89c8cda657cb4c76220346f06e6e3589
parentd0f1ea6003d97e63110fa7d50bb07f546a909b6e
test-lib: Fix say_color () not to interpret \a\b\c in the message

When running with color disabled (e.g. under prove to produce TAP
output), say_color() helper function is defined to use echo to show
the message.  With a message that ends with "\c", echo is allowed to
interpret it as "Do not end the line with LF".

Use printf "%s\n" to emit the message literally.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh