Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: crash with nameref and local argv
- X-seq: zsh-workers 54024
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: crash with nameref and local argv
- Date: Mon, 3 Nov 2025 08:53:09 -0800
- Archived-at: <https://zsh.org/workers/54024>
- In-reply-to: <CAHYJk3RW-a5_sG4sc4pN-X3=Q1AQ2rZbBsKidWXEBzJps8piZw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHYJk3Qe7XuGv_B8nFUdHLD4C_kSgaJkS5acAFWTJ2Db_GWoUQ@mail.gmail.com> <CAHYJk3RW-a5_sG4sc4pN-X3=Q1AQ2rZbBsKidWXEBzJps8piZw@mail.gmail.com>
On Mon, Nov 3, 2025 at 7:49 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> This still seems to crash for me with recent git.
>
> On Tue, Jun 10, 2025 at 1:11 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> >
> > % () { local argv=( $argv ); typeset -nu foo=argv; echo $foo }
I probably missed this before because I was traveling for a good
portion of June, but this is a special case I thought I had handled at
one point. You can't make a named reference to the parent's argv
array, because that doesn't exist "below" its original scope: argv is
specially implemented on the call stack instead of in the parameter
table.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author