Use %s with printf in test.sh

This commit is contained in:
Nick Mathewson 2011-02-22 00:31:56 -05:00
parent 9c469db300
commit 039b9bd0e3

View File

@ -9,9 +9,9 @@ fi
# /bin/echo is a little more likely to support -n than sh's builtin echo, # /bin/echo is a little more likely to support -n than sh's builtin echo,
# printf is even more likely # printf is even more likely
if test "`printf hello 2>&1`" = "hello" if test "`printf %s hello 2>&1`" = "hello"
then then
ECHO_N="printf" ECHO_N="printf %s"
else else
if test -x /bin/echo if test -x /bin/echo
then then