aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-05-03 00:52:22 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-05-03 00:52:22 +0200
commit6a0abcc02f0773f32f2d31b3532eec1b11e1f67d (patch)
tree723311362dbf162b079f2ef88045a128967c0d64 /testsuite
parent52d83708364f85463fbc3756420b4068df13aab7 (diff)
downloadbusybox-6a0abcc02f0773f32f2d31b3532eec1b11e1f67d.tar.gz
sed: support \r in s command
function old new delta copy_parsing_escapes 65 91 +26 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sed.tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index 395372ae6..e9d0ed601 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -287,6 +287,9 @@ testing "sed -i with address modifies all files, not only first" \
"cp input input2; sed -i -e '1s/foo/bar/' input input2 && cat input input2; rm input2" \
"bar\nbar\n" "foo\n" ""
+testing "sed understands \r" \
+ "sed 's/r/\r/'" \
+ "\rrr\n" "" "rrr\n"
# testing "description" "arguments" "result" "infile" "stdin"