bug-bash
[Top][All Lists]
Advanced

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

Re: printf "%q" "~" not escaped?


From: Chet Ramey
Subject: Re: printf "%q" "~" not escaped?
Date: Wed, 22 Feb 2012 09:39:44 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 2/22/12 2:47 AM, John Kearney wrote:
> Bash Version: 4.2
> Patch Level: 10
> Release Status: release
> 
> Description:
> printf "%q" "~" not escaped?
> 
> which means that this
> eval echo $(printf "%q" "~")
> results in your home path not a ~
> unlike
> eval echo $(printf "%q" "*")
> 
> as far as I can see its the only character that isn't treated as I
> expected.

Thanks for the report.  This will be fixed in the next bash release.



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