]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: move space from `diag_()' to `$diag_string_'
authorRichard Hansen <rhansen@rhansen.org>
Mon, 3 Feb 2025 23:26:54 +0000 (18:26 -0500)
committerKarl Berry <karl@freefriends.org>
Sun, 23 Feb 2025 01:36:59 +0000 (17:36 -0800)
* 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

index 3e0cb50febdf7f5d8b2d7f28669c57f7112f359c..5b36b1c872fe30a5a289efe5b47c40084a814fde 100644 (file)
@@ -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]
 # ------------------