[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unexpected tilde quoting change in version 4.3
From: |
Chet Ramey |
Subject: |
Re: unexpected tilde quoting change in version 4.3 |
Date: |
Thu, 23 Oct 2014 10:05:08 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 10/22/14, 4:08 PM, idallen@idallen.ca wrote:
> Bash Version: 4.2 and 4.3
>
> Description:
>
> I find this change in quoting from 4.2 to 4.3 odd, where double-quoted
> "~" used to be quoted (no expansion) and no longer works:
This just came up yesterday, for pete's sake:
http://lists.gnu.org/archive/html/bug-bash/2014-10/msg00197.html
A longer explanation, with links to older bug reports:
http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00038.html
The Posix interpretation that prompted the behavior change came in 2010:
http://austingroupbugs.net/view.php?id=221
The current version of Posix says this about the substring removal word
expansions, which use patterns in the same way as pattern substitution:
"Enclosing the full parameter expansion string in double-quotes shall not
cause the following four varieties of pattern characters to be quoted,
whereas quoting characters within the braces shall have this 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/