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

Re: Parameter Expansion



On Tue, Jul 15, 2025 at 1:06 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
>
> On Tue, Jul 15, 2025, at 2:17 PM, Mark J. Reed wrote:
> > I'm not denying that the doc could be clearer - there should probably
> > be a note in PARAMETER EXPANSION mentioning that history expansion
> > modifiers can be used
>
> There already is one:

Besides which, the original question started with

> I don't understand the order of parameter expansion.

There's an entire section (14.3.3 Rules) that explains the order of
expansion in detail, which includes

7. _Modifiers_
     Any modifiers, as specified by a trailing '#', '%', '/' (possibly
     doubled) or by a set of modifiers of the form ':...' (see *note
     Modifiers:: in *note History Expansion::), are applied to the words
     of the value at this level.

(pardon the "info" link syntax)




Messages sorted by: Reverse Date, Date, Thread, Author