diff options
Diffstat (limited to 'testsuite/sed.tests')
-rwxr-xr-x | testsuite/sed.tests | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index 9a7f886c1..8af156ae9 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests | |||
@@ -207,4 +207,17 @@ testing "sed n command must reset 'substituted' bit" \ | |||
207 | "sed 's/1/x/;T;n;: next;s/3/y/;t quit;n;b next;: quit;q'" \ | 207 | "sed 's/1/x/;T;n;: next;s/3/y/;t quit;n;b next;: quit;q'" \ |
208 | "0\nx\n2\ny\n" "" "0\n1\n2\n3\n" | 208 | "0\nx\n2\ny\n" "" "0\n1\n2\n3\n" |
209 | 209 | ||
210 | testing "sed d does not break n,m matching" \ | ||
211 | "sed -n '1d;1,3p'" \ | ||
212 | "second\nthird\n" "" "first\nsecond\nthird\nfourth\n" | ||
213 | |||
214 | testing "sed d does not break n,regex matching" \ | ||
215 | "sed -n '1d;1,/hir/p'" \ | ||
216 | "second\nthird\n" "" "first\nsecond\nthird\nfourth\n" | ||
217 | |||
218 | testing "sed d does not break n,regex matching #2" \ | ||
219 | "sed -n '1,5d;1,/hir/p'" \ | ||
220 | "second2\nthird2\n" "" \ | ||
221 | "first\nsecond\nthird\nfourth\n""first2\nsecond2\nthird2\nfourth2\n" | ||
222 | |||
210 | exit $FAILCOUNT | 223 | exit $FAILCOUNT |