aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-07-21 22:09:44 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2013-07-21 22:09:44 +0200
commitb0e9b72915a87121aabf21d4e382e16e0a9a5175 (patch)
treef260550026cd79fa5ac59ebe0fa7ff769f0a6d94 /testsuite
parent26cd90c7fd32f2ef252acb146f8b9152e55346ec (diff)
downloadbusybox-b0e9b72915a87121aabf21d4e382e16e0a9a5175.tar.gz
sed: fix matching of newlines by $
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sed.tests21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index 468565f47..2af1e4c97 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -310,6 +310,27 @@ testing "sed zero chars match/replace logic must not falsely trigger here 2" \
"sed 's/ *$/_/g'" \
"qwerty_\n" "" "qwerty\n"
+testing "sed /\$_in_regex/ should not match newlines, only end-of-line" \
+ "sed ': testcont; /\\\\$/{ =; N; b testcont }'" \
+ "\
+this is a regular line
+2
+line with \\
+continuation
+more regular lines
+5
+line with \\
+continuation
+" \
+ "" "\
+this is a regular line
+line with \\
+continuation
+more regular lines
+line with \\
+continuation
+"
+
# testing "description" "commands" "result" "infile" "stdin"
exit $FAILCOUNT