From: Richard Hansen Date: Mon, 3 Feb 2025 23:26:53 +0000 (-0500) Subject: tests: use `printf' instead of `echo' X-Git-Tag: v1.17.90~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=381c96b24637e0d89bb874eaccfc0c5dc80f006d;p=thirdparty%2Fautomake.git tests: use `printf' instead of `echo' * t/ax/tap-functions (diag_): Use `printf' instead of `echo' in case `echo' processes backslash escapes or the argument looks like an option. --- diff --git a/t/ax/tap-functions.sh b/t/ax/tap-functions.sh index 29b9a028c..a458b773e 100644 --- a/t/ax/tap-functions.sh +++ b/t/ax/tap-functions.sh @@ -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 <