From: Richard Hansen Date: Mon, 3 Feb 2025 23:26:54 +0000 (-0500) Subject: tests: move space from `diag_()' to `$diag_string_' X-Git-Tag: v1.17.90~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=997227ca9013f019ecfc29c83e41bd926cf4037d;p=thirdparty%2Fautomake.git tests: move space from `diag_()' to `$diag_string_' * t/ax/tap-functions.sh (diag_): Moved the space separating `$diag_string_' from the diagnostic message to `$diag_string_' so that callers can eliminate the space. --- diff --git a/t/ax/tap-functions.sh b/t/ax/tap-functions.sh index 3e0cb50fe..5b36b1c87 100644 --- a/t/ax/tap-functions.sh +++ b/t/ax/tap-functions.sh @@ -78,12 +78,12 @@ diag_ () set +x test $# -eq 0 || { printf %s\\n "$*" | diag_; return; } while IFS= read -r line || test -n "$line"; do - printf %s\\n "$diag_string_ $line" + printf %s\\n "$diag_string_$line" done ) # Used by the 'diag_' function above. User-overridable. -diag_string_="#" +diag_string_="# " # warn_ [EXPLANATION] # ------------------