sed bug ?

Timo Teras timo.teras at iki.fi
Thu Nov 17 09:56:06 UTC 2016


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?

Thanks,
Timo


More information about the busybox mailing list