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 53550
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: Fix nameref errors exposed by Philippe's tests
- Date: Mon, 5 May 2025 09:11:12 -0700
- Archived-at: <https://zsh.org/workers/53550>
- In-reply-to: <CAH+w=7Ztz9U_15u1R=LPVUa-5QBXcDzUeNiPBPi=3QxjjGO_5g@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7Ztz9U_15u1R=LPVUa-5QBXcDzUeNiPBPi=3QxjjGO_5g@mail.gmail.com>
On Sun, May 4, 2025 at 10:18 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> % zsh-5.9.0.2-test nr-test.zsh "" 7
> g:1: rs= - ra= - rs1= - ra1=
> g:2: rs= - ra= - rs1= - ra1=
> h:1: rs= - ra= - rs1= - ra1=
> h:2: rs= - ra= - rs1= - ra1=
> i:1: rs= - ra= - rs1= - ra1=
> i:2: rs= - ra= - rs1= - ra1=
> VALUES 7
I had inserted some extra print statements so I could see in the
output where the assignment took place. Copy-pasted from that output
instead of the original script.
> j:1: rs=i - ra=i - rs1=i - ra1=i
> j:2: rs=i - ra=i - rs1=i - ra1=i
> k:1: rs=i - ra=i - rs1=i - ra1=i
> j:3: rs=i - ra=i - rs1=i - ra1=i
> i:3: rs=i - ra=i - rs1=i - ra1=i
> h:3: rs=h - ra=h - rs1=h - ra1=h
> g:3: rs=g - ra=g - rs1=g - ra1=g
As mentioned on one of the other threads, I now think these last two
lines are (and should be) the expected behavior.
My intention is to reduce this test script to less extensive examples
and add them to K01nameref. The cases it exposed don't need seven
scopes to come to light.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author