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.ra...@case.edu Cc: chet.ra...@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 c...@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-----