]> git.draconx.ca Git - cdecl99.git/blobdiff - tests/general.at
tests: Don't use #n in sed scripts.
[cdecl99.git] / tests / general.at
index c40d6b511e56b13008220ff92165eb18362d5232..a77134f04310086a04159df468bd6ffeeb1fa1ec 100644 (file)
@@ -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.