Bug in busybox sed - this one is real
Rich Felker
dalias at aerifal.cx
Sun Jun 3 13:54:55 UTC 2012
Ping. Anybody looked at this? I filed it as bug # 5246.
Rich
On Mon, May 07, 2012 at 11:12:09PM -0400, Rich Felker wrote:
> $ echo hello | busybox sed 's/l*/@/g'
> @he at o
> $ echo hello | sed 's/l*/@/g'
> @h at e@o@
>
> 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.
>
> Rich
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list