Test the N command
authorGlenn L McGrath <bug1@ihug.co.nz>
Mon, 15 Sep 2003 05:35:47 +0000 (05:35 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Mon, 15 Sep 2003 05:35:47 +0000 (05:35 -0000)
testsuite/sed/sed-append-next-line [new file with mode: 0644]

diff --git a/testsuite/sed/sed-append-next-line b/testsuite/sed/sed-append-next-line
new file mode 100644 (file)
index 0000000..380b793
--- /dev/null
@@ -0,0 +1,9 @@
+busybox sed -n 'N;p'>output <<EOF
+a
+b
+c
+EOF
+cmp -s output - <<EOF
+a
+b
+EOF