Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Fix nameref errors exposed by Philippe's tests
- X-seq: zsh-workers 53556
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Philippe Altherr <philippe.altherr@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: Fix nameref errors exposed by Philippe's tests
- Date: Mon, 5 May 2025 18:12:28 -0700
- Archived-at: <https://zsh.org/workers/53556>
- In-reply-to: <CAGdYchtP7pKMxd0yJX=s_h8BiB1n1DrCzsx8WCXyGgBa0-eWUg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7Ztz9U_15u1R=LPVUa-5QBXcDzUeNiPBPi=3QxjjGO_5g@mail.gmail.com> <CAH+w=7YNUk+MfbahFy-mLKL6DTiq=sTmWr-Ygipbxm1C5eAeyQ@mail.gmail.com> <CAGdYcht4EoKoYccTXTfYOweWKdi4p6o0S4PzFNR_-LUGK5fY6w@mail.gmail.com> <CAH+w=7ZaHRhitCroqidHO30QDALDXJmoiWJfV=a+QMkXQJwChQ@mail.gmail.com> <CAGdYchtotV-yx6ZP2dmXSqej3yV2Tnwms_3ZDfkVy9E_g_OOSg@mail.gmail.com> <CAH+w=7Y4Suiwrr0PWVpYcp_5jNDFdeTF4n411Zk1HpJukTdWyQ@mail.gmail.com> <CAGdYchtP7pKMxd0yJX=s_h8BiB1n1DrCzsx8WCXyGgBa0-eWUg@mail.gmail.com>
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