Bug in busybox sed - this one is real

Denys Vlasenko vda.linux at googlemail.com
Fri Jun 8 08:26:58 UTC 2012


On Thursday 07 June 2012 18:08, John Spencer wrote:
> On 06/07/2012 05:28 PM, Rich Felker wrote:
> >
> > Thanks, seems much better now!
> > I think this finally makes busybox sed a viable replacement for GNU
> > sed for general-purpose use (including for a system that can rebuild
> > itself).
> >
> > Rich
> >
> 
> here's another buggy one (from apr 1.4.6) :
> 
> sed 1s/[    ]*<[lL]ayout[   ]*apr[  ]*>[    ]*//;1t -e 1,/[         
> ]*<[lL]ayout[   ]*apr[  ]*>[    ]*/d -e /[      ]*<\/Layout>[   ]*/,$d 
> -e s/^[  ]*//g -e s/:[   ]*/=\'/g -e s/[         ]*$/'/g ./config.layout

I had to d/l apr-1.4.6 source to get non-mangled sed command of yours.

Fixed in git, please try it...

-- 
vda


More information about the busybox mailing list