Re: a nameref may resolve to different variables in assignment and parameter expansion

2022-01-07 Thread Chet Ramey
On 1/6/22 1:31 PM, Mark March wrote: It appears that the same initialized nameref variable may refer to variables in different scopes depending on the context where it is used. When used in an assignment, a nameref will look for the variable it references starting at the scope where the namere

a nameref may resolve to different variables in assignment and parameter expansion

2022-01-06 Thread Mark March
It appears that the same initialized nameref variable may refer to variables in different scopes depending on the context where it is used. When used in an assignment, a nameref will look for the variable it references starting at the scope where the nameref itself was found, which may be below