bug-bash
[Top][All Lists]
Advanced

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

printf "%q" "~" not escaped?


From: John Kearney
Subject: printf "%q" "~" not escaped?
Date: Wed, 22 Feb 2012 08:47:35 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20120129 Thunderbird/10.0

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.



reply via email to

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