summaryrefslogtreecommitdiff
path: root/busybox/testsuite/sed/sed-append-next-line
diff options
context:
space:
mode:
Diffstat (limited to 'busybox/testsuite/sed/sed-append-next-line')
-rw-r--r--busybox/testsuite/sed/sed-append-next-line19
1 files changed, 19 insertions, 0 deletions
diff --git a/busybox/testsuite/sed/sed-append-next-line b/busybox/testsuite/sed/sed-append-next-line
new file mode 100644
index 0000000..0621a31
--- /dev/null
+++ b/busybox/testsuite/sed/sed-append-next-line
@@ -0,0 +1,19 @@
+# This will fail if CONFIG_FEATURE_SED_GNU_COMPATABILITY is defined
+busybox sed 'N;p'>output <<EOF
+a
+b
+c
+EOF
+
+set +e
+cmp -s output - <<EOF
+a
+b
+a
+b
+c
+EOF
+if [ $? != 0 ] ; then
+ exit 0;
+fi
+exit 1;