Add a test for the 'P' command and fix current implementation so it

doesnt permanently modify the pattern space.
This commit is contained in:
Glenn L McGrath
2003-09-15 06:28:45 +00:00
parent 6e5687abc3
commit 2eed0e2d47
2 changed files with 14 additions and 0 deletions

View 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