[BusyBox] bug#1027: Make sed s//p compliant with GNU sed

Mark Whitley markw at lineo.com
Mon Aug 21 21:34:38 UTC 2000


Package: busybox
Version: v0.47pre
Severity: normal

Mark Ferrell <mferrell at mvista.com> was gracious enough to patch sed to support
the 'p' option in substitution commands. It does, however, have a little bug
where it prints the appropriate output only once rather than twice as per GNU
sed. Consider:

$ echo "Foo Bar" | sed 's/ Bar//p'
Foo
Foo

$ echo "Foo Bar" | ./busybox sed 's/ Bar//p'
Foo

For the pedants out there, yes, this behavior actually is POSIX compliant, but
when in doubt on a busybox tool, the rule is to emulate the equivalent GNU
tool.

Mark (Ferrel) said he would be responsible for this one.

Mark Whitley
markw at lineo.com






More information about the busybox mailing list