[SLL] Simple Bash execution of string: How do I execute the string?

Robert Woodcock rcw at blarg.net
Tue Jun 10 16:16:43 PDT 2008


On Tue, Jun 10, 2008 at 03:37:04PM -0700, Xeno Campanoli wrote:
> `$x` is not working for me.

eval "$x" maybe?

eval "touch 'foo bar baz'" creates a 'foo bar baz' file for me, not a foo, a
bar, and a baz file.
-- 
Robert Woodcock - rcw at blarg.net
perl -e '$a-=($_%4-2)*4/$_++while++$_<2e6;print"$a\n"'



More information about the linux-list mailing list