help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] How to extrapolate string including '~'?


From: John Kearney
Subject: Re: [Help-bash] How to extrapolate string including '~'?
Date: Mon, 13 May 2013 18:10:46 +0200

I think you meant
eval x=\"$str\"


On Sun, May 12, 2013 at 2:35 PM, Peng Yu <address@hidden> wrote:
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



reply via email to

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