diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-15 06:28:45 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-15 06:28:45 +0000 |
commit | 2eed0e2d470d7020e8bdec2a0f398a296192816b (patch) | |
tree | 6cac378079257eb4bb2c9364ecb2976720f4091e /testsuite | |
parent | 6e5687abc3732fac6d8a43a324b8f284f7a5482d (diff) | |
download | busybox-w32-2eed0e2d470d7020e8bdec2a0f398a296192816b.tar.gz busybox-w32-2eed0e2d470d7020e8bdec2a0f398a296192816b.tar.bz2 busybox-w32-2eed0e2d470d7020e8bdec2a0f398a296192816b.zip |
Add a test for the 'P' command and fix current implementation so it
doesnt permanently modify the pattern space.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/sed/sed-write-to-stdout | 10 |
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 @@ | |||
1 | busybox sed -n 'N;P;p'>output <<EOF | ||
2 | a | ||
3 | b | ||
4 | c | ||
5 | EOF | ||
6 | cmp -s output - <<EOF | ||
7 | a | ||
8 | a | ||
9 | b | ||
10 | EOF | ||