From: Nick Bowler Date: Sat, 27 Jan 2024 02:00:15 +0000 (-0500) Subject: tests: Don't use #n in sed scripts. X-Git-Tag: v1.3~21 X-Git-Url: http://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/1526f3aa197173fb9c4653e71178fbeb4c55eeef 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. --- 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.