summaryrefslogtreecommitdiff
path: root/testsuite/sed
diff options
context:
space:
mode:
authorGlenn L McGrath2003-09-15 06:12:53 +0000
committerGlenn L McGrath2003-09-15 06:12:53 +0000
commit6e5687abc3732fac6d8a43a324b8f284f7a5482d (patch)
treea52bb068db8a2a021bca47a8b8c4b2c486dfc863 /testsuite/sed
parent7b3512129799fe07195d188133605fde5c8c6e75 (diff)
downloadbusybox-6e5687abc3732fac6d8a43a324b8f284f7a5482d.zip
busybox-6e5687abc3732fac6d8a43a324b8f284f7a5482d.tar.gz
A test and fix for the sed 'n' command
Diffstat (limited to 'testsuite/sed')
-rw-r--r--testsuite/sed/sed-next-line12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/sed/sed-next-line b/testsuite/sed/sed-next-line
new file mode 100644
index 0000000..38fe20c
--- /dev/null
+++ b/testsuite/sed/sed-next-line
@@ -0,0 +1,12 @@
+busybox sed 'n;p'>output <<EOF
+a
+b
+c
+EOF
+cmp -s output - <<EOF
+a
+b
+b
+c
+c
+EOF