diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-16 23:36:58 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-16 23:36:58 +0000 |
commit | 4b0bb9e0fd9ec06e9e61b1a1527ace99ea9fe571 (patch) | |
tree | 407d68a79c7ba2a260afea0daaedbae5a12ed84e /testsuite | |
parent | 486e7ca6b7531d76c9d0e758e1dafe083837a13f (diff) | |
download | busybox-w32-4b0bb9e0fd9ec06e9e61b1a1527ace99ea9fe571.tar.gz busybox-w32-4b0bb9e0fd9ec06e9e61b1a1527ace99ea9fe571.tar.bz2 busybox-w32-4b0bb9e0fd9ec06e9e61b1a1527ace99ea9fe571.zip |
sed: fix very obscure case of escaped newline in sed command
(needed for uclibc build, btw). Add testcase for it.
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sed.tests | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index 9576b6c4b..a054de6d7 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests | |||
@@ -146,6 +146,10 @@ rm outputw | |||
146 | testing "sed trailing NUL" \ | 146 | testing "sed trailing NUL" \ |
147 | "sed 's/i/z/' input -" \ | 147 | "sed 's/i/z/' input -" \ |
148 | "a\0b\0\nc" "a\0b\0" "c" | 148 | "a\0b\0\nc" "a\0b\0" "c" |
149 | testing "sed escaped newline in command" \ | ||
150 | "sed 's/a/z\\ | ||
151 | z/' input" \ | ||
152 | "z\nz" "a" "" | ||
149 | 153 | ||
150 | # Test end-of-file matching behavior | 154 | # Test end-of-file matching behavior |
151 | 155 | ||