On 4/20/14, 4:09 PM, Jo Liss wrote: > After upgrading to Ubuntu 14.04, Bash 4.3.8 expands the tilde in > search-and-replace patterns: > > $ a=x; echo "${a/x/~}" > /home/ubuntu > > Is this an intentional change, or is it a bug?
It's intentional; read the thread starting at http://lists.gnu.org/archive/html/bug-bash/2014-03/threads.html for a more complete explanation. 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/