On 10/22/14, 4:08 PM, idal...@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 c...@case.edu http://cnswww.cns.cwru.edu/~chet/