From 997227ca9013f019ecfc29c83e41bd926cf4037d Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 3 Feb 2025 18:26:54 -0500 Subject: [PATCH] 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. --- t/ax/tap-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] # ------------------ -- 2.47.3