From 31011f3e3c102d7d8ebeb69e0d5222b0d91a0ee6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 26 Jul 2026 13:38:40 -0700 Subject: [PATCH] test: add ; for sed portability 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/tap-stderr-prefix.tap b/t/tap-stderr-prefix.tap index ac2924e95..fb85d2a66 100644 --- a/t/tap-stderr-prefix.tap +++ b/t/tap-stderr-prefix.tap @@ -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. } -- 2.47.3