On Thursday, January 30, 2014 23:12:18 Andreas Schwab wrote:
> Mike Frysinger <vapier@gentoo.org> writes:
> > $ ./a.out 'a\-b' a-b
> > regcomp(a\-b) = 0
>
> The effect of \- in a BRE is undefined.
yes, but that's kind of irrelevant for the point raised here. bash's =~ uses
ERE, and passing in REG_EXTENDED to get ERE semantics with regcomp() yields
the same result (at least with glibc) as above.
-mike
signature.asc Description: This is a digitally signed message part.