]> granicus.if.org Git - libevent/commitdiff
Use %s with printf in test.sh
authorNick Mathewson <nickm@torproject.org>
Tue, 22 Feb 2011 05:31:56 +0000 (00:31 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Feb 2011 05:31:56 +0000 (00:31 -0500)
test/test.sh

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