summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-29 14:31:47 +0000
committerDenis Vlasenko2007-01-29 14:31:47 +0000
commitfe7a9f12771109af593a186471e100fd7fd78901 (patch)
tree66e4a7f08b6696a8ac0b8839438e44a0314f4090 /testsuite
parent826c85f3828c30b772d307c6b60ff3be744cecc2 (diff)
downloadbusybox-fe7a9f12771109af593a186471e100fd7fd78901.zip
busybox-fe7a9f12771109af593a186471e100fd7fd78901.tar.gz
sed: fix 2 bugs (one testsuite entry + one newly found)
but more importantly make code more understandable
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sed.tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index a386f17..cc20070 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -139,6 +139,10 @@ testing "sed selective matches noinsert newline" \
testing "sed clusternewline" \
"sed -e '/one/a 111' -e '/two/i 222' -e p input -" \
"one\none\n111\n222\ntwo\ntwo" "one" "two"
+testing "sed subst+write" \
+ "sed -e 's/i/z/' -e 'woutputw' input -; echo -n X; cat outputw" \
+ "thzngy\nagaznXthzngy\nagazn" "thingy" "again"
+rm outputw
# Test end-of-file matching behavior