From 4795e4e011f1a146a2a4aa06a006fff5641befb5 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 26 Jul 2006 17:25:08 +0000 Subject: 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. --- testsuite/sed.tests | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testsuite') 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" -- cgit v1.2.3