Re: [Help-bash] How to extrapolate string including '~'?
From:
Greg Wooledge
Subject:
Re: [Help-bash] How to extrapolate string including '~'?
Date:
Mon, 13 May 2013 12:22:54 -0400
User-agent:
Mutt/1.4.2.3i
On Mon, May 13, 2013 at 06:10:46PM +0200, John Kearney wrote:
> I think you meant
> eval x=\"$str\"
$ str='";date;: "'
$ eval x=\"$str\"
Mon May 13 12:17:17 EDT 2013
Eval is very, very easy to use wrong. eval x=\"$str\" would be an example
of doing it wrong.
http://mywiki.wooledge.org/BashFAQ/048