[BusyBox] bug in sed for busybox 0.52

Jim Gleason jimg at lineo.com
Tue Jul 31 10:15:15 UTC 2001


Thanks Matt,  I am running a little behind in life right now.

Jim

Matt Kraai wrote:

> On Tue, Jul 31, 2001 at 10:01:41AM -0600, Erik Andersen wrote:
> > On Fri Jul 13, 2001 at 03:20:43PM -0600, Jim Gleason wrote:
> > > However, my patch does not fix yet another bug in the same code (bigger and
> > > badder in my opinion).  If the substitution commands are to affect the same
> > > line (first one and then another), the code will fail miserably.  First,
> > > you will get the first substitution results output, and then the second
> > > which relied on the second will fail.  Next, if the original line would
> > > have been altered by yet another substitution, we will get another altered
> > > copy of the line output.  The code needs modified to pass around a modified
> > > string and then output it if it has not been totaly removed/deleted.  I
> > > don't have time to make such a modification now, but maybe sometime next
> > > week.
> >
> > Jim, do you have a testcase yo can provide that demonstrates this
> > bigger and badder bug, so I can look into it?
>
> There is such a testcase in the testsuite I posted recently.  It
> contains the following:
>
> # XFAIL
> test "$(echo foo | busybox sed -e s/foo/bar/ -e s/bar/baz/)" = baz
>
> Matt
>
> _______________________________________________
> busybox mailing list
> busybox at opensource.lineo.com
> http://opensource.lineo.com/mailman/listinfo/busybox


More information about the busybox mailing list