hush/testsuite/sed/sed-write-to-stdout
Glenn L McGrath 2eed0e2d47 Add a test for the 'P' command and fix current implementation so it
doesnt permanently modify the pattern space.
2003-09-15 06:28:45 +00:00

11 lines
78 B
Plaintext

busybox sed -n 'N;P;p'>output <<EOF
a
b
c
EOF
cmp -s output - <<EOF
a
a
b
EOF