[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFE: Fix the name collision issues and typing issues with namerefs,
From: |
Greg Wooledge |
Subject: |
Re: RFE: Fix the name collision issues and typing issues with namerefs, improve various issues for function libraries |
Date: |
Mon, 19 Jun 2017 08:18:14 -0400 |
User-agent: |
Mutt/1.4.2.3i |
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...