help-bash
[Top][All Lists]
Advanced

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

[Help-bash] Is there a way to delay variable substitution using eval?


From: Peng Yu
Subject: [Help-bash] Is there a way to delay variable substitution using eval?
Date: Wed, 28 Jan 2015 09:49:55 -0600

Hi,

I want to delay the variable substitution. Is there a way to do so in
bash? Thanks.

~$ x=xyz
~$ eval "echo $x" # variable will be substituted before eval is
called, which is not what I need
~$ eval "echo $$x" # This does not work.
6592x

-- 
Regards,
Peng



reply via email to

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