test-lib.sh: do not "echo" caller-supplied strings
commitcb1aefda53aac7c5e8bda58ed86f0682730b330b
authorUwe Storbeck <uwe@ibr.ch>
Tue, 18 Mar 2014 00:14:11 +0000 (18 01:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Mar 2014 18:48:00 +0000 (18 11:48 -0700)
tree68b501b1caee9e85eb7170e70577852b39ffa2bc
parent47be06602656ee9cac860f675d2c8d1f0deabdbe
test-lib.sh: do not "echo" caller-supplied strings

In some places we "echo" a string that is supplied by the calling
test script and may contain backslash sequences. The echo command
of some shells, most notably "dash", interprets these backslash
sequences (POSIX.1 allows this) which may scramble the test
output.

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