Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Parameter Expansion
- X-seq: zsh-users 30314
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Lawrence Velázquez <larryv@xxxxxxx>
- Cc: "Mark J. Reed" <markjreed@xxxxxxxxx>, Vin Shelton <ethersoft@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: Parameter Expansion
- Date: Tue, 15 Jul 2025 13:11:27 -0700
- Archived-at: <https://zsh.org/users/30314>
- In-reply-to: <1a6ebe30-3969-4e03-a477-b5c95aaf5810@app.fastmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CACeGjnWw4=9Hm9k0iXSoLDRYCfVxEz=uYrQ6MyBouRbFBbf7yw@mail.gmail.com> <44d1a0ff-b701-459c-aeb4-6b71e7c6cd62@gmx.com> <CACeGjnULdr+zyC=rmp8JbV-ouPgfJMGKSfQk1nYS=OrJ+xPQPA@mail.gmail.com> <CAA=-s3xT_v+hXkfAteLfvnL38JSsGo=d5dh0QZJrt1BmaDvJ_Q@mail.gmail.com> <CACeGjnWu0an+k9OhtP-694YOroOGhLU=hCn4j5n9NyqA5AM5Ew@mail.gmail.com> <CAA=-s3ye-Kjh8UXrUY1hpX5_=_MWM0GJdCSEdwCMJjd9o9OQ7Q@mail.gmail.com> <1a6ebe30-3969-4e03-a477-b5c95aaf5810@app.fastmail.com>
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