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

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



On Mon, May 5, 2025 at 5:14 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> If I follow this logic, then

Well, no, you're generalizing where I was being specific.  I was
describing a bug, not the way it always happens.

> - with value 0, $s is from scope f but is visible in g. $rs looks one scope above the visible $s, finds the $s from e but the test outputs f, (same for value 1)

It'll never "find in scope X but output from scope X+1".  It always
outputs from the scope where it found something.  In the bug case it
skips an extra scope before it starts searching.  I don't yet know why
that happens starting at test 5.




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