Re: assignment to a nameref that resolves to the temporary environment

2018-12-11 Thread Chet Ramey
On 12/9/18 1:28 AM, Grisha Levit wrote: > When a nameref local to a higher function scope points to a variable in the > temporary environment, that nameref (correctly, it seems) expands to the > value > of the target variable from the temporary environment. However, assignment > to > the nameref mo

assignment to a nameref that resolves to the temporary environment

2018-12-08 Thread Grisha Levit
When a nameref local to a higher function scope points to a variable in the temporary environment, that nameref (correctly, it seems) expands to the value of the target variable from the temporary environment. However, assignment to the nameref modifies the variable from the higher scope, bypassing