From 51f687c5fbcc54739dfe42e7e7d4dbf7d7f9a377 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 18 Oct 2022 07:18:08 -0500 Subject: [PATCH] Not sure if this test should be toyonly or not? --- tests/grep.test | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/grep.test b/tests/grep.test index 00803afe..ea125c7a 100755 --- a/tests/grep.test +++ b/tests/grep.test @@ -201,6 +201,9 @@ testcmd '-z patter\n' "-ze $'x\n' | xxd -pc0" \ testcmd "-z patter\n 2" "-zof input | xxd -pc0" "69007400\n" "i\nt" "hi\nthere" testcmd '-lZ' '-lZ ^t input' 'input\0' 'one\ntwo' '' +# other implementations get this wrong without -a, but right with -a??? +toyonly testcmd '-l ^ after \0' '-l ^t' '' 'one\0two' '' + testcmd "print zero length match" "'[0-9]*'" "abc\n" "" "abc\n" testcmd "-o skip zero length match" "-o '[0-9]*'" "1234\n" "" "a1234b" # Bit of a hack, but other greps insert gratuitous \e[K clear-to-EOL -- 2.39.2