aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sed/sed-append-next-line-gnu
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-09-16 05:25:43 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-09-16 05:25:43 +0000
commit2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1 (patch)
treede00e748021d3078ea21bb90017ded81129cb4bd /testsuite/sed/sed-append-next-line-gnu
parent204ff1cea49c958846cd49175fa9318b81b5756f (diff)
downloadbusybox-2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1.tar.gz
Configuration option to define wether to follows GNU sed's behaviour
or the posix standard. Put the cleanup code back the way it was.
Diffstat (limited to 'testsuite/sed/sed-append-next-line-gnu')
-rw-r--r--testsuite/sed/sed-append-next-line-gnu14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/sed/sed-append-next-line-gnu b/testsuite/sed/sed-append-next-line-gnu
new file mode 100644
index 000000000..d7aba8c2c
--- /dev/null
+++ b/testsuite/sed/sed-append-next-line-gnu
@@ -0,0 +1,14 @@
+# FEATURE: CONFIG_FEATURE_SED_GNU_COMPATABILITY
+busybox sed 'N;p'>output <<EOF
+a
+b
+c
+EOF
+cmp -s output - <<EOF
+a
+b
+a
+b
+c
+
+EOF