Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Fix nameref errors exposed by Philippe's tests



Hm.  It's not looking one level above the current scope, it's looking
one level above the parameter currently in scope.

Which parameter? The one being initialized? Then shouldn't all runs refer to "f"? The 4 references "rs", "ra", "rs1", and "ra1" are only ever defined in function "g", which is called by "f".

Philippe


On Mon, May 5, 2025 at 11:49 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
On Mon, May 5, 2025 at 1:52 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> I don't understand why the results for nr-test -u {5..10} keep referring to "g".

Hm.  It's not looking one level above the current scope, it's looking
one level above the parameter currently in scope.


Messages sorted by: Reverse Date, Date, Thread, Author