sed bug ?

Denys Vlasenko vda.linux at googlemail.com
Sun Nov 20 21:47:44 UTC 2016


On Thu, Nov 17, 2016 at 10:56 AM, Timo Teras <timo.teras at iki.fi> wrote:
> Hi,
>
> The following discrepancy happens on 1.25.1 (and git master) with musl
> c-library:
>
> ~ $ echo /usr/lib/ | sed 's,\(^/\|\)[^/][^/]*,..,g'
> ../../
>
> ~ $ echo /usr/lib/ | busybox sed 's,\(^/\|\)[^/][^/]*,..,g'
> /../../
>
> Any thoughts?

Doesn't happen with current git with glibc and uclibc.

I did not convert yet to using musl for my static builds:
IIRC last time I tried, the binary was bigger than one
built against uclibc (and I had a few other minor problems).


More information about the busybox mailing list