projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sed: support \r in s command
[oweals/busybox.git]
/
testsuite
/
sed.tests
diff --git
a/testsuite/sed.tests
b/testsuite/sed.tests
index 395372ae685b1696b9a6bd09335bb245e24ce0a6..e9d0ed6018ee32ddfc32883ce4cae8a3f21ec87d 100755
(executable)
--- 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"