bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash-4.3-rc2 available for FTP


From: Chet Ramey
Subject: Re: Bash-4.3-rc2 available for FTP
Date: Thu, 30 Jan 2014 21:04:00 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

-----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    chet@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-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]