summaryrefslogtreecommitdiff
path: root/testsuite/sed/sed-write-to-stdout
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/sed/sed-write-to-stdout')
-rw-r--r--testsuite/sed/sed-write-to-stdout10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/sed/sed-write-to-stdout b/testsuite/sed/sed-write-to-stdout
new file mode 100644
index 0000000..95b4d72
--- /dev/null
+++ b/testsuite/sed/sed-write-to-stdout
@@ -0,0 +1,10 @@
+busybox sed -n 'N;P;p'>output <<EOF
+a
+b
+c
+EOF
+cmp -s output - <<EOF
+a
+a
+b
+EOF