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-w32-b0e9b72915a87121aabf21d4e382e16e0a9a5175.tar.gz
busybox-w32-b0e9b72915a87121aabf21d4e382e16e0a9a5175.tar.bz2
busybox-w32-b0e9b72915a87121aabf21d4e382e16e0a9a5175.zip
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" \
310 "sed 's/ *$/_/g'" \ 310 "sed 's/ *$/_/g'" \
311 "qwerty_\n" "" "qwerty\n" 311 "qwerty_\n" "" "qwerty\n"
312 312
313testing "sed /\$_in_regex/ should not match newlines, only end-of-line" \
314 "sed ': testcont; /\\\\$/{ =; N; b testcont }'" \
315 "\
316this is a regular line
3172
318line with \\
319continuation
320more regular lines
3215
322line with \\
323continuation
324" \
325 "" "\
326this is a regular line
327line with \\
328continuation
329more regular lines
330line with \\
331continuation
332"
333
313# testing "description" "commands" "result" "infile" "stdin" 334# testing "description" "commands" "result" "infile" "stdin"
314 335
315exit $FAILCOUNT 336exit $FAILCOUNT