]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: use `printf' instead of `echo'
authorRichard Hansen <rhansen@rhansen.org>
Mon, 3 Feb 2025 23:26:53 +0000 (18:26 -0500)
committerKarl Berry <karl@freefriends.org>
Sun, 23 Feb 2025 01:36:59 +0000 (17:36 -0800)
* t/ax/tap-functions (diag_): Use `printf' instead of `echo' in case
`echo' processes backslash escapes or the argument looks like an
option.

t/ax/tap-functions.sh

index 29b9a028c826e3c69ff2b32d8f51a491eb737e09..a458b773e8f1230a545fc75ae82493a8b57524e6 100644 (file)
@@ -77,7 +77,7 @@ diag_ ()
 (
   set +x
   test $# -eq 0 || while IFS= read -r line; do
-    echo "$diag_string_ $line"
+    printf %s\\n "$diag_string_ $line"
   done <<EOF
 $*
 EOF