|
From: | John Kearney |
Subject: | Re: [Help-bash] How to extrapolate string including '~'? |
Date: | Mon, 13 May 2013 18:10:46 +0200 |
Hi,
I want to extrapolate a string that includes '~'. Is there a way to do
so in bash?
str='~'
x=$(eval "$str")
-bash: /Users/john: Is a directory
--
Regards,
Peng
[Prev in Thread] | Current Thread | [Next in Thread] |