On Thursday, January 30, 2014 23:53:55 Andreas Schwab wrote: > Mike Frysinger <vap...@gentoo.org> writes: > > 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. > > The effect of \- in an ERE is still undefined.
so it is. yet still irrelevant. the GNU library defines behavior explicitly: https://www.gnu.org/software/gnulib/manual/html_node/The-Backslash-Character.html#The-Backslash-Character and it still doesn't explain why every version from bash-3.0 through bash-4.2 behaves the same but bash-4.3 does not. the release notes specifically call out backslash changes to make things "more consistent behavior". i don't changing the behavior of the example i posted makes sense. -mike
signature.asc
Description: This is a digitally signed message part.