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

Re: Named reference (and other) pending work



Thanks for the summary.

On Sat, May 2, 2026 at 2:13 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> Review of typeset implementation
>
> A few months ago, I started an exhaustive review of the implementation of typeset and found many issues, which lead to many side tracks. Some of them have been resolved and a few others are among the patches listed above. However, I know for sure that there are still issues with typeset. In particular with -p and -m when applied to named references.

-m is not supposed to work at all with named references.

> Turn placeholder dereferencing into an error
>
> In ksh, any attempt to dereference a placeholder reference triggers an error. Zsh should do the same.

I disagree (except in ksh emulation mode).  There are other parameter
cases where ksh has errors but zsh has traditionally yielded empty
string.

> Currently it sometimes exhibits rather dubious behaviors in place of triggering an error.

However, I agree that anything other than behaving like
${an_unset_scalar} would be dubious.




Messages sorted by: Reverse Date, Date, Thread, Author