Test for use of newline in regex's, this feature is used by most
authorGlenn L McGrath <bug1@ihug.co.nz>
Mon, 15 Sep 2003 05:53:28 +0000 (05:53 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Mon, 15 Sep 2003 05:53:28 +0000 (05:53 -0000)
configure scripts.

testsuite/sed/sed-regex-match-newline [new file with mode: 0644]

diff --git a/testsuite/sed/sed-regex-match-newline b/testsuite/sed/sed-regex-match-newline
new file mode 100644 (file)
index 0000000..1057e17
--- /dev/null
@@ -0,0 +1,10 @@
+# FEATURE: CONFIG_FEATURE_SED_EMBEDED_NEWLINE
+busybox sed -n 'N;/a\nb/p'>output <<EOF
+a
+b
+c
+EOF
+cmp -s output - <<EOF
+a
+b
+EOF