summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-12-21 23:17:06 -0600
committerRob Landley <rob@landley.net>2014-12-21 23:17:06 -0600
commitc09b79dc71d986213d37805131b89a135202263e (patch)
tree7ec6b682faaeef191606098fa5bd5bda8dd799f2 /tests
parent1a1e0a9d325dd1ca7461a8e8203dd47bab6a8bc1 (diff)
downloadtoybox-c09b79dc71d986213d37805131b89a135202263e.tar.gz
toybox-c09b79dc71d986213d37805131b89a135202263e.tar.bz2
toybox-c09b79dc71d986213d37805131b89a135202263e.zip
Another sed bug. (The e2fsprogs build uses multiple line continuations on the same command.)
Diffstat (limited to 'tests')
-rw-r--r--tests/sed.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sed.test b/tests/sed.test
index 789a1a5..dfc7602 100644
--- a/tests/sed.test
+++ b/tests/sed.test
@@ -75,6 +75,8 @@ testing "sed c range" "sed '2,4c blah'" "one\nblah\nfive\nsix" "" \
testing "sed c {range}" "sed -e '2,4{c blah' -e '}'" \
"one\nblah\nblah\nblah\nfive\nsix" \
"" "one\ntwo\nthree\nfour\nfive\nsix"
+testing "sed c multiple continuation" \
+ "sed -e 'c\\' -e 'two\\' -e ''" "two\n\n" "" "hello"
testing "sed D further processing depends on whether line is blank" \
"sed -e '/one/,/three/{' -e 'i meep' -e'N;2D;}'" \
"meep\nmeep\ntwo\nthree\n" "" "one\ntwo\nthree\n"