Re: Named reference (and other) pending work
Bart Schaefer <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <CAH+w=7Zin9TNo6T-K90G1Y2ANFgB5TH=7Xn23gOpsmqchiO02w@mail.gmail.com> |
Thanks for the summary. On Sat, May 2, 2026 at 2:13 PM Philippe Altherr <[email protected]> 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.