From 773d404ee2b99797763012a32b317422ac18d64e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 26 Apr 2021 05:09:57 -0500 Subject: Bugfix: sed s command couldn't skip initial match. --- tests/sed.test | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/sed.test b/tests/sed.test index c3928e58..fd3b2057 100755 --- a/tests/sed.test +++ b/tests/sed.test @@ -115,6 +115,7 @@ testing 'empty match after nonempty match' "sed -e 's/a*/c/g'" 'cbcncgc' \ testing 'empty match' "sed -e 's/[^ac]*/A/g'" 'AaAcA' '' 'abcde' testing 's///#comment' "sed -e 's/TWO/four/i#comment'" "one\nfour\nthree" \ "" "one\ntwo\nthree" +testing 's///num off end' 'sed -e s/e//2' 'e\n' '' 'e\n' testing 'N flushes pending a and advances match counter' \ "sed -e 'a woo' -e 'N;\$p'" 'woo\none\ntwo\none\ntwo' "" 'one\ntwo' -- cgit v1.2.3