bug-bash
[Top][All Lists]
Advanced

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

Re: pattern substitution expands "~" even in quoted variables


From: Chet Ramey
Subject: Re: pattern substitution expands "~" even in quoted variables
Date: Fri, 07 Mar 2014 19:51:48 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

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

On 3/7/14, 11:21 AM, Lars Wendler wrote:

> Bash Version: 4.3
> Patch Level: 0
> Release Status: release
> 
> Description:
> 
> bash-4.3 seems to expand a "~" (tilde character) with full homepath in a 
> pattern substitution even when the variable is embraced by double quotes.

Yes, this is a fix for a bug in bash-4.2.  Eduardo's excellent explanation
provides more detail.  ksh93 behaves the same as bash-4.3, FWIW.

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.12 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlMaaYYACgkQu1hp8GTqdKv/wACdEmh6RxfsHOxN8IwQ8EV7XRJB
pT8AmwaOD6sUaJpC3d8sD+4GUtMjuSy+
=inIq
-----END PGP SIGNATURE-----



reply via email to

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