]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
test: add ; for sed portability master
authorKarl Berry <karl@freefriends.org>
Sun, 26 Jul 2026 20:38:40 +0000 (13:38 -0700)
committerKarl Berry <karl@freefriends.org>
Sun, 26 Jul 2026 20:38:40 +0000 (13:38 -0700)
        From https://bugs.gnu.org/81498 (Erik A Johnson).

* t/tap-stderr-prefix.tap (check_log_line_order): add ; to sed
command for portability to macOS (BSD-based) sed (at least as of
Tahoe 26.5.2).

t/tap-stderr-prefix.tap

index ac2924e9589568051554e4484815c2f66d526fd2..fb85d2a666f27cc15fe0fdb275c151632f42bf34 100644 (file)
@@ -149,7 +149,7 @@ check_log_line_order() {
   {
     grep -xe "$1" all.log
     grep -xe "$2" all.log
-    sed -n -e '/^\('"$1"'\)$/,${/^\('"$2"'\)$/p}' all.log | grep -xe "$2"
+    sed -n -e '/^\('"$1"'\)$/,${/^\('"$2"'\)$/p;}' all.log | grep -xe "$2"
   } >&2  # Write to stderr in case $1 or $2 looks like a TAP directive.
 }