Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: crash with nameref and local argv
- X-seq: zsh-workers 54031
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Mikael Magnusson <mikachu@xxxxxxxxx>, zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: crash with nameref and local argv
- Date: Tue, 04 Nov 2025 22:50:31 +0100
- Archived-at: <https://zsh.org/workers/54031>
- In-reply-to: <CAH+w=7Y_zy1-1Mx1T4mmUX00UwO-R+FJQGTZ7fOq8DmtJPcvpA@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> <CAH+w=7YuE2GzH1F9r9Q6WmJxk1puj1M1qmSLsQ76pJ2r+49r4g@mail.gmail.com> <CAH+w=7YWh4nS__qzBEb3i9_OYfTkYfqLYSigEp+Obyp6_K+nDg@mail.gmail.com> <4143-1762289686.575274@LOsr.E3jP.C0e7> <CAH+w=7YHz6Wc5DeXvPP9z_ooH63WNpvHSioZYeDJYWbrC1XEDg@mail.gmail.com> <CAH+w=7Y_zy1-1Mx1T4mmUX00UwO-R+FJQGTZ7fOq8DmtJPcvpA@mail.gmail.com>
Bart Schaefer wrote:
> Ignore that, it doesn't allow naming something "argvcopy" etc. Sorry.
I was just about to reply with that.
Adding a check for whether val[4] is NULL or '[' may be enough, or?
Is there definitely no other variables with similar properties to argv?
ARGC immediately comes to mind. Or the various automatically local
completion/zle widget variables. I've tested those and don't see
problems.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author