On Mon, Jun 19, 2017 at 12:07:31AM -0400, George wrote:
> ultimately identified in the nameref also comes from the caller) but the 
> inconsistency there, of "typeset -n" behaving differently depending on where
> the name comes from, is very unappealing to me. I'd much rather see this 
> behavior activated by an explicit argument to declare, like this:
> declare --caller-scope-nameref result_var=$whatever
> Or this:
> declare -n --scope=caller result_var=$whatever

Or this:
upvar "$1" myvar

~50% joking...

Reply via email to