[master] 5da592f Use printf(1) instead of echo(1) with -n option, it should be more portable, says Nils Goroll

Poul-Henning Kamp phk at varnish-cache.org
Mon Jan 31 19:28:03 CET 2011


commit 5da592f57d3bbb13e0fecdef6397049b5043e8aa
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jan 31 18:27:23 2011 +0000

    Use printf(1) instead of echo(1) with -n option, it should be
    more portable, says Nils Goroll

diff --git a/bin/varnishtest/tests/m00004.vtc b/bin/varnishtest/tests/m00004.vtc
index 1c629b2..2561b45 100644
--- a/bin/varnishtest/tests/m00004.vtc
+++ b/bin/varnishtest/tests/m00004.vtc
@@ -3,9 +3,9 @@
 test "Test fileread for std VMOD"
 
 shell {
-	echo -n "File One" > "${tmpdir}/m00004_file_one"
-	echo -n "File Two" > "${tmpdir}/m00004_file_two"
-	echo -n "File Three" > "${tmpdir}/m00004_file_three"
+	printf "File One" > "${tmpdir}/m00004_file_one"
+	printf "File Two" > "${tmpdir}/m00004_file_two"
+	printf "File Three" > "${tmpdir}/m00004_file_three"
 }
 
 server s1 {



More information about the varnish-commit mailing list