From 1526f3aa197173fb9c4653e71178fbeb4c55eeef Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Fri, 26 Jan 2024 21:00:15 -0500 Subject: [PATCH 1/1] tests: Don't use #n in sed scripts. For whatever reason at least some versions of the MinGW/MSYS port of GNU sed doesn't seem to handle scripts staring with #n. No big deal, we can just use the -n option explicitly instead. --- tests/general.at | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/general.at b/tests/general.at index c40d6b5..a77134f 100644 --- a/tests/general.at +++ b/tests/general.at @@ -70,15 +70,14 @@ explain int # Program to generate expected output based on src/execute.gperf AT_DATA([expout.sed], -[[#n -/^%%$/,/^%%$/ { +[[/^%%$/,/^%%$/ { s/^exit.*// s/,.*//p } $a\ type int ]]) -sed -f expout.sed "$srcdir/src/execute.gperf" >expout +sed -n -f expout.sed "$srcdir/src/execute.gperf" >expout # Program to filter the help output to extract the command list from "help" # without any descriptions. -- 2.43.2