Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: All the way up or current scope
On Sat, May 10, 2025 at 7:19 AM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> When a function is exited and the scope of named reference is updated because it referred to a local variable of the exited function, should its scope be set to the (new) current scope (i.e., the scope of the calling function) or should it be set all the way up to the scope of the next enclosing rname variable or the global scope if no such variable exists?
I'll be AFK most of today and don't have time to confirm right now,
but I'm reasonably sure that "all the way to the top" violates the
"works like ksh" condition.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author