Configuration option to define wether to follows GNU sed's behaviour

or the posix standard.
Put the cleanup code back the way it was.
This commit is contained in:
Glenn L McGrath
2003-09-16 05:25:43 +00:00
parent 204ff1cea4
commit 2570b43e82
5 changed files with 70 additions and 29 deletions

View File

@ -1,4 +1,6 @@
busybox sed -n 'N;p'>output <<EOF
# XFAIL
# This will fail if CONFIG_FEATURE_SED_GNU_COMPATABILITY is defined
busybox sed 'N;p'>output <<EOF
a
b
c
@ -6,4 +8,7 @@ EOF
cmp -s output - <<EOF
a
b
a
b
c
EOF

View File

@ -0,0 +1,14 @@
# FEATURE: CONFIG_FEATURE_SED_GNU_COMPATABILITY
busybox sed 'N;p'>output <<EOF
a
b
c
EOF
cmp -s output - <<EOF
a
b
a
b
c
EOF