Re: Parameter Expansion
Lawrence Velázquez <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <[email protected]> |
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:
In addition to the following operations, the colon modifiers
described in noderef(Modifiers) in noderef(History Expansion)
can be applied: for example, tt(${i:s/foo/bar/}) performs
string substitution on the expansion of parameter tt($i).
https://sourceforge.net/p/zsh/code/ci/zsh-5.9.0.2-test/tree/Doc/Zsh/expn.yo
--
vq