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

Re: crash with nameref and local argv



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