I am trying to dereference two or more variables contained in a single variable but I can't think of how to do it without eval:
$:b=5
$:c=10
$:a='$b $c'
$:result=`eval echo $a`
$:echo $result
5 10
I'm looking to do the equivalent operation that gives me 'result' so I don't have to do an eval. Is it possible to resolve multiple variables referenced by a single variable any other way? I'm looking to do this in BASH