Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Named reference (and other) pending work
- X-seq: zsh-workers 54455
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Philippe Altherr <philippe.altherr@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Named reference (and other) pending work
- Date: Sat, 2 May 2026 15:31:26 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=slYRAJtwePhpr40P/pIr7NRMSAAGQCg/2/lXTSBQUTE=; fh=RngAOd9wlRc8Glv1v2GOfDUnq2FsyrczungEY8JNfXY=; b=Ri/3Xj51ZZt8RVMgwiyTj8jwvIE9Jq6KJJAI8DHIPrT5wFhh+bKbjhqqMDD5IqHnI/ nvogGUfCYHieTtbu01U9eJgknjvoK/h7Q3hauZAHkhI7tGw7R7aAIIQCFBauIqA7r5Wt aYOztaX04AdzGSQ4UIDIjoyEVAGeyuWjbdUB1vd0kMgov7FLQ53lRSygakMaOVDs4RNb ZfIdx6QSLJwY+ojbRbeB+gzYHYm3glQ+iMKP2OxHRdB8YhsX/fWvDLtQ5F6AX5Kul3Mk ftyOYsK8DJ1E/PsWlG55OviMucCDXbvsVy6ddh4pEWHqHJOjY+InXYxwWp2DaDKj7tVp +a2A==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1777761098; cv=none; d=google.com; s=arc-20240605; b=E31MM105jqxrn16I+KbL8lhnai/SH9o25jSKQBi0U+lCN3VKUtpd5hAMkNcTT0Pjvk XSRmJIvrJkZ11ngCZW7U+cciuJFDH7YwAVw+NBAfCW0S8Hr0UcH61PG5uVOwa4O4VYp5 4o4Qm29eE1lp0BY5Lr9u7dtnnuYjU6e2U/1A7OTJV2FYJ4tYoLsrpaThy/ykfbOkgE38 FBCbIaiN1Q4rgd2ObOjO3LSHx9ylI3dGipFU506vMOBc9sdNzFCy5M2Qix2jW9XB/Gf5 7Grvid9zhN3x3/s70rIRjaw8EuTC0oesL3W6qEEaUBerRbKQWnqWgvGIQbVlL+FJOgpM suxA==
- Archived-at: <https://zsh.org/workers/54455>
- In-reply-to: <CAGdYchs+naf4xm2RcK_vfsMPCuiYPqf-050-Z6z-Ch095Y+hGw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAGdYchs+naf4xm2RcK_vfsMPCuiYPqf-050-Z6z-Ch095Y+hGw@mail.gmail.com>
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