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: dethrophes
Subject: Re: pattern substitution expands "~" even in quoted variables
Date: Sat, 08 Mar 2014 10:25:54 +0100

backslash to escape still works?

Sent from my BlackBerry 10 smartphone.
  Original Message  
From: Chet Ramey
Sent: Samstag, 8. März 2014 01:52
To: Lars Wendler; bug-bash@gnu.org
Reply To: chet.ramey@case.edu
Cc: chet.ramey@case.edu
Subject: Re: pattern substitution expands "~" even in quoted variables

-----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]