[OpenWrt-Devel] [musl] regex issue / asterisk / musl / sed
nsz at port70.net
Mon Feb 29 14:18:43 EST 2016
* Szabolcs Nagy <nsz at port70.net> [2016-02-29 14:53:48 +0100]:
> * Bastian Bittorf <bittorf at bluebottle.com> [2016-02-29 13:57:36 +0100]:
> > root at box:~ echo 'o*o' | sed -e 's/*/asterisk/g'
> > sed: bad regex '*': Invalid regexp
> > root at box:~ echo 'o*o' | sed -e 's/\*/asterisk/g'
> > oasterisko
> > it's musl 1.1.14 on OpenWrt / r48814
> > both commands are working fine with glibc and uclibc
> > but the first invokation fails with musl 1.1.14 but
> > works with musl 1.1.13. unsre if the prob is on my
> > side, maybe $you have an idea...
> yes, i introduced this regression in
> because i missed the special * behaviour for BRE,
> but even before that ^* was broken so just reverting
> the patch is not enough, handling * after an anchor
> or assertion correctly needs more code changes.
a possible fix is attached, the handling of ^ and $
in BRE is suboptimal, but that will need a bigger
More information about the openwrt-devel