Rich Felker | 8 May 2012 14:55

Re: Bug in busybox sed - this one is real

On Tue, May 08, 2012 at 07:39:28AM +0200, Sedat Dilek wrote:
> On Tue, May 8, 2012 at 5:12 AM, Rich Felker <dalias <at> aerifal.cx> wrote:
> > $ echo hello | busybox sed 's/l*/ <at> /g'
> >  <at> he <at> o
> > $ echo hello | sed 's/l*/ <at> /g'
> >  <at> h <at> e <at> o <at> 
> >
> > The latter is of course correct. My naive diagnosis is that Busybox
> > sed's 'g' option has an off-by-one error in its next-match search,
> > i.e. advanced by one character too many before searching for the next
> > match.
> >
> 
> Which busybox-version?

All I've tried, including latest git.

Rich

Gmane