Dup Ver Goto 📝

Indirection

PT2/lang/bash/variables does not exist
To
16 lines, 47 words, 401 chars Page 'Indirection' does not exist.

See for example this stackoverflow question.

MYVAR=Hello
A=MYVAR
echo ${!A}

will print Hello. The exceptions are

echo ${!PA*}

will print a (IFS-delimited) list of variables beginning with PA. And

echo ${!name[@]}

will list the array keys for the array variable $name.