Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: expanding nameref target?
- X-seq: zsh-workers 51496
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Oliver Kiddle <opk@xxxxxxx>, zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: expanding nameref target?
- Date: Tue, 28 Feb 2023 10:01:19 -0800
- Archived-at: <https://zsh.org/workers/51496>
- In-reply-to: <CAHYJk3R+t1J3foARgOXCLp5LLfR2Qx=zwonH_Fo2-XoDccuu7w@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHYJk3TgMpb0Z3cmLhZ-EQ5p8o_q9G7KE-mF1UAGguoOY=cQeQ@mail.gmail.com> <CAH+w=7bzkkKAg+TF9itdSeffk4VjfJWQnBgXonLn_cRA=ETrnQ@mail.gmail.com> <CAH+w=7bFo3Ph7MTE5EkFfk5wYLY00MEHiQHOt9ZNWhem4fwLVw@mail.gmail.com> <60026-1677574037.450652@BS_8.Gg9A.ql-t> <CAHYJk3R+t1J3foARgOXCLp5LLfR2Qx=zwonH_Fo2-XoDccuu7w@mail.gmail.com>
On Tue, Feb 28, 2023 at 2:33 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> What about (PP)? There is some precedent for doubling a flag to
> disable its effect. The downside is that (PP) already works and is
> treated like (P) but...
The other downside is that ${(P)nameref} would not be the "opposite"
of ${(PP)nameref}. You'd go from two "dereferences" to zero.
Also I'd prefer ${(PP)...} to mean ${(P)${(P)...}} if that were
do-able (tho likely it isn't).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author