-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 1/30/14, 7:18 PM, Mike Frysinger wrote:
>> 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. You might take a look at a recent discussion for some context: http://lists.gnu.org/archive/html/bug-bash/2014-01/msg00091.html Different regexp engines (and different shells) differ on things as seemingly simple as [[ x =~ \x ]] and bs='\' [[ x =~ ${bs}x ]] The case you cited is one I'm still looking at. There's a comment in the code to that effect. Chet - -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlLrBH8ACgkQu1hp8GTqdKsxFACeI8JpRY8CWGYon8hqNN/DzqAG sd0An2LfA8yUBi69VLzpjkdlmwNttigf =Q/Ai -----END PGP SIGNATURE-----