From 381c96b24637e0d89bb874eaccfc0c5dc80f006d Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 3 Feb 2025 18:26:53 -0500 Subject: [PATCH] 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. --- t/ax/tap-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 <