Az eval jó megoldás:
The order of expansions is: brace expansion, tilde expansion, parameter, variable, and arithmetic expansion and command substitution (done in a left-to-right fashion), word splitting, and filename expansion.
http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.htm…