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

Re: Should (z) PE flag split & during expansion?



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