Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Should (z) PE flag split & during expansion?
- X-seq: zsh-workers 51829
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zaidhaan Hussain <zaidhaan@xxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Should (z) PE flag split & during expansion?
- Date: Mon, 5 Jun 2023 13:01:21 -0700
- Archived-at: <https://zsh.org/workers/51829>
- In-reply-to: <rfqgtwa77p6aklvn6y4pcx2zu4jwmkd7f4cw44ygmtzj55izi6@au6wtpuvowe6>
- List-id: <zsh-workers.zsh.org>
- References: <rfqgtwa77p6aklvn6y4pcx2zu4jwmkd7f4cw44ygmtzj55izi6@au6wtpuvowe6>
On Fri, Jun 2, 2023 at 11:00 PM Zaidhaan Hussain <zaidhaan@xxxxxxx> wrote:
>
> printf '<%s>' ${(z)${:-'!-2:&'}}
> <!-2:><&>
>
> Which does not make sense if we consider that & is valid in parameter
> expansions.
History references are entirely separate from shell syntax -- they are
an interactive-use-only feature vaguely similar to macro expansion.
The (z) flag doesn't account for them at all, and really cannot.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author