bug-bash
[Top][All Lists]
Advanced

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

Re: behaviour change between 4.2/4.3 with tilde


From: Chet Ramey
Subject: Re: behaviour change between 4.2/4.3 with tilde
Date: Wed, 22 Oct 2014 09:01:33 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/22/14, 4:20 AM, Hanno Böck wrote:
> Hello,
> 
> I experienced a somewhat unexpected behaviour change in bash 4.3
> comparing to 4.2.
> 
> This is a reduced sample:
> export a='x'; echo "${a/x/~}"
> 
> On bash 4.3 this will result in the user's homedir path. On 4.2 this
> will result in a ~.
> If one wants to get a "~" char there seems no easy portable way to do
> so. Using escaping with \~ works in 4.3, but not in 4.2.
> 
> I wanted to ask if this is an expected feature/behaviour change in 4.3
> or some kind of bug?

http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00038.html

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.11 (Darwin)

iEYEARECAAYFAlRHqq0ACgkQu1hp8GTqdKs2kQCggO9u0pCRUcv6YHGuu5H02dOh
iy0AnA5WXpVBEtV9qGg99oyYkf1iCBVg
=uzPw
-----END PGP SIGNATURE-----



reply via email to

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