[Top][All Lists]

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

Re: Tilde expansion in ${var/x/y}

From: Chet Ramey
Subject: Re: Tilde expansion in ${var/x/y}
Date: Sun, 20 Apr 2014 22:32:26 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

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


for a more complete explanation.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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