aboutsummaryrefslogtreecommitdiff
path: root/tests/sed.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-03-28 20:21:03 -0500
committerRob Landley <rob@landley.net>2015-03-28 20:21:03 -0500
commita64e35b336dbca32aa16228b09670ff8f83029d2 (patch)
tree4cdcb8575d53de2312da9f031d06fd7abe266918 /tests/sed.test
parent5d431d1e1f9172587775c00a07b767f9b544cb91 (diff)
downloadtoybox-a64e35b336dbca32aa16228b09670ff8f83029d2.tar.gz
Fix sed bug David Halls hit trying to compile libiconv.
Diffstat (limited to 'tests/sed.test')
-rw-r--r--tests/sed.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/sed.test b/tests/sed.test
index dfc76023..9f2956f8 100644
--- a/tests/sed.test
+++ b/tests/sed.test
@@ -4,7 +4,7 @@
testing 'sed as cat' 'sed ""' "one\ntwo\nthree" "" "one\ntwo\nthree"
# This segfaults ubuntu 12.04's sed. No really.
-testing 'sed - - twice' 'sed "" - -' "hello\n" "" "hello\n"
+SKIP_HOST=1 testing 'sed - - twice' 'sed "" - -' "hello\n" "" "hello\n"
testing 'sed -n' 'sed -n ""' "" "" "one\ntwo\nthree"
testing 'sed -n p' 'sed -n p' "one\ntwo\nthree" "" "one\ntwo\nthree"
testing 'sed explicit pattern' 'sed -e p -n' "one\ntwo\nthree" "" \
@@ -132,6 +132,9 @@ hello'" "merp\nhello\n" "" "merp"
#echo merp | sed/sed "1a\\
#hello"
+testing "sed bonus backslashes" \
+ "sed -e 'a \l \x\' -e \"\$(echo -e 'ab\\\nc')\"" \
+ "hello\nl x\nab\nc\n" "" "hello\n"
# -i with $ last line test
exit $FAILCOUNT