Add a test for the 'P' command and fix current implementation so it
doesnt permanently modify the pattern space.
This commit is contained in:
10
testsuite/sed/sed-write-to-stdout
Normal file
10
testsuite/sed/sed-write-to-stdout
Normal file
@@ -0,0 +1,10 @@
|
||||
busybox sed -n 'N;P;p'>output <<EOF
|
||||
a
|
||||
b
|
||||
c
|
||||
EOF
|
||||
cmp -s output - <<EOF
|
||||
a
|
||||
a
|
||||
b
|
||||
EOF
|
||||
Reference in New Issue
Block a user