In bash how can I use a variable's value to reference another variable?
e.g. my best attempt so far (which is the same as say -v es):
learning="es"
es="Jorge"
say -v $learning "Hola, me llamo Jorge"
How do I make it equivalent to say -v Jorge?
EDIT:
This has been closed as a duplicate, but I do not find the "duplicate" question useful at all. The answers there show how to set variables. I want to know how I can use them.
say -v "${!learning}"