a=b; b=c; c=d
eval echo \$$a produces the output:
If we want to extract the output
d using just input
a, I tried the following way:
eval echo \$(eval echo \$$a) produces the error:
syntax error near unexpected token '('
eval echo \$\(eval echo \$$a\) produces the output:
I am not able to understand why escape slashing the bracket got rid of the error.
Also, could someone please explain why I didn't get the output as
d in the second instance?