[master] 6df251006 OS/X's shell still (!) does not support -n on built-in echo

Poul-Henning Kamp phk at FreeBSD.org
Fri Oct 20 09:20:11 UTC 2023


commit 6df251006899ddd9410b34a60766995007fdec7b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Oct 20 09:18:36 2023 +0000

    OS/X's shell still (!) does not support -n on built-in echo

diff --git a/bin/varnishtest/tests/u00000.vtc b/bin/varnishtest/tests/u00000.vtc
index 831dd9eac..d3baa09d6 100644
--- a/bin/varnishtest/tests/u00000.vtc
+++ b/bin/varnishtest/tests/u00000.vtc
@@ -173,7 +173,7 @@ shell -err -expect {Cannot read -f file} {
 # Test that incomplete CLI commands in -I causes failure
 
 process p1 {
-	echo -n foobar > ${tmpdir}/_foobar
+	/bin/echo -n foobar > ${tmpdir}/_foobar
 	exec varnishd -n ${tmpdir}/v0 -d -a :0 -I ${tmpdir}/_foobar 2>&1
 } -expect-exit 2 -start
 
@@ -182,7 +182,7 @@ process p1 -screen-dump
 process p1 -wait
 
 process p2 {
-	echo 'foobar << blabla' > ${tmpdir}/_foobar
+	/bin/echo 'foobar << blabla' > ${tmpdir}/_foobar
 	exec varnishd -n ${tmpdir}/v0 -d -a :0 -I ${tmpdir}/_foobar 2>&1
 } -expect-exit 2 -start
 


More information about the varnish-commit mailing list