diff options
author | Denys Vlasenko | 2009-07-10 11:55:20 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-07-10 11:55:20 +0200 |
commit | ae68f1133f5d7ea56ac3ea7f0ee439c3496835e8 (patch) | |
tree | 07221d77b35520ae4d38456ffa9d8381f316718c /testsuite/sed.tests | |
parent | 52a426744e1d58229397d2935e62a1f3e374619c (diff) | |
download | busybox-ae68f1133f5d7ea56ac3ea7f0ee439c3496835e8.zip busybox-ae68f1133f5d7ea56ac3ea7f0ee439c3496835e8.tar.gz |
sed: deal with peculiar behavior of '2d;2,1p' in GNU sed
function old new delta
process_files 2173 2120 -53
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/sed.tests')
-rwxr-xr-x | testsuite/sed.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index 8af156a..677303b 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests @@ -220,4 +220,9 @@ testing "sed d does not break n,regex matching #2" \ "second2\nthird2\n" "" \ "first\nsecond\nthird\nfourth\n""first2\nsecond2\nthird2\nfourth2\n" +testing "sed 2d;2,1p (gnu compat)" \ + "sed -n '2d;2,1p'" \ + "third\n" "" \ + "first\nsecond\nthird\nfourth\n" + exit $FAILCOUNT |