>> Examples? >> >> http://fvue.nl/wiki/Bash:_Passing_variables_by_reference , I like that. >
Very interesting. This reminds me of reflection in Java. Something difficult and dangerous to use, so you never use it directly. Instead you ask a framework or a library ( ~= "upvar" ) to use reflection for you. Unlike your code, such a framework has been developed and approved by wizards and tested by millions of users. The analogy unfortunately stops here: you cannot use reflection by accident, whereas in shell it looks easy to accidentally stumble on dynamic scoping.