Re: Parameter Expansion
Bart Schaefer <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAH+w=7ZQ=YyZbRZ9tV-9ucVcUPV5BC93i9dmTF6SpUbNiff8UA@mail.gmail.com> |
On Tue, Jul 15, 2025 at 1:06 PM Lawrence Velázquez <[email protected]> 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)