diff options
author | Rob Landley <rob@landley.net> | 2006-07-26 17:25:08 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-07-26 17:25:08 +0000 |
commit | 4795e4e011f1a146a2a4aa06a006fff5641befb5 (patch) | |
tree | 6185ef8c9dfc1f24c094d5262b745119f6400402 /testsuite | |
parent | 7cc6b69bb09d2242493b7c4d882af958254e0cc7 (diff) | |
download | busybox-4795e4e011f1a146a2a4aa06a006fff5641befb5.tar.gz |
Rich Filker spotted that sed -e 's/xxx/[/' didn't work right. Did a smaller
fix than his, and shrank the code a bit on top of that so the net size is
smaller, and added a test to the test suite for this case. Plus I cleaned up
the #includes and removed unnecessary "const"s while I was there.
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sed.tests | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index 4d6e2e67e..9d2be5570 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests @@ -174,6 +174,8 @@ testing "sed -i with no arg [GNUFAIL]" "sed -e '' -i 2> /dev/null || echo yes" \ "yes\n" "" "" rm ./- # Clean up +testing "sed s/xxx/[/" "sed -e 's/xxx/[/'" "[\n" "" "xxx\n" + # Ponder this a bit more, why "woo not found" from gnu version? #testing "sed doesn't substitute in deleted line" \ # "sed -e '/ook/d;s/ook//;t woo;a bang;'" "bang" "" "ook\n" |