aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sed
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-15 06:28:45 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-15 06:28:45 +0000
commit39a7b575b6b8f0e4d35579c357c8d419327f6543 (patch)
tree6cac378079257eb4bb2c9364ecb2976720f4091e /testsuite/sed
parentdb3f2bee3fef51d263599f8d13dfb3b5945999c1 (diff)
downloadbusybox-w32-39a7b575b6b8f0e4d35579c357c8d419327f6543.tar.gz
busybox-w32-39a7b575b6b8f0e4d35579c357c8d419327f6543.tar.bz2
busybox-w32-39a7b575b6b8f0e4d35579c357c8d419327f6543.zip
Add a test for the 'P' command and fix current implementation so it
doesnt permanently modify the pattern space. git-svn-id: svn://busybox.net/trunk/busybox@7521 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'testsuite/sed')
-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 000000000..95b4d724b
--- /dev/null
+++ b/testsuite/sed/sed-write-to-stdout
@@ -0,0 +1,10 @@
1busybox sed -n 'N;P;p'>output <<EOF
2a
3b
4c
5EOF
6cmp -s output - <<EOF
7a
8a
9b
10EOF