aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-28 23:26:15 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-28 23:26:15 +0000
commit826c85f3828c30b772d307c6b60ff3be744cecc2 (patch)
treeaf1d14dc4df46508bdccc3f99d3aac622933b0f1 /testsuite
parentdccb1a53432aad9ef304f891817f658e58c67651 (diff)
downloadbusybox-w32-826c85f3828c30b772d307c6b60ff3be744cecc2.tar.gz
busybox-w32-826c85f3828c30b772d307c6b60ff3be744cecc2.tar.bz2
busybox-w32-826c85f3828c30b772d307c6b60ff3be744cecc2.zip
fix all known regressions with sed and also make it simpler
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sed.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index 2a0d4eacf..a386f1723 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -146,6 +146,11 @@ testing "sed match EOF" "sed -e '"'$p'"'" "hello\nthere\nthere" "" \
146 "hello\nthere" 146 "hello\nthere"
147testing "sed match EOF two files" "sed -e '"'$p'"' input -" \ 147testing "sed match EOF two files" "sed -e '"'$p'"' input -" \
148 "one\ntwo\nthree\nfour\nfour" "one\ntwo" "three\nfour" 148 "one\ntwo\nthree\nfour\nfour" "one\ntwo" "three\nfour"
149# sed match EOF inline: gnu sed 4.1.5 outputs this:
150#00000000 6f 6e 65 0a 6f 6f 6b 0a 6f 6f 6b 0a 74 77 6f 0a |one.ook.ook.two.|
151#00000010 0a 74 68 72 65 65 0a 6f 6f 6b 0a 6f 6f 6b 0a 66 |.three.ook.ook.f|
152#00000020 6f 75 72 |our|
153# which looks buggy to me.
149echo -ne "three\nfour" > input2 154echo -ne "three\nfour" > input2
150testing "sed match EOF inline" \ 155testing "sed match EOF inline" \
151 "sed -e '"'$i ook'"' -i input input2 && cat input input2" \ 156 "sed -e '"'$i ook'"' -i input input2 && cat input input2" \