[ale] variable variables in bash/ksh?

Geoffrey esoteric at 3times25.net
Mon Apr 19 11:38:13 EDT 2004


Jason Etheridge wrote:
>> XYZ="ABC"
>> ABC=123456
>> echo $$XYZ
> 
> 
> There's probably a more elegant way to do it, but in bash:
> eval echo $`echo ${XYZ}`
> 
> A phrase to google for is "double interpolation".

That did not appear to work for me.

-- 
Until later, Geoffrey                     Registered Linux User #108567
Building secure systems in spite of Microsoft



More information about the Ale mailing list