Re: Parameter Expansion

Eric Cook <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <[email protected]>
On 7/15/25 11:12 AM, Vin Shelton wrote:
> Although I see history mentioned in the zshexpn manpage, I don't know what my example has to do with history.

The ${param:s-r-l-} in your example is a history modifier, used in history expansion that you see within history expansion section
of the zshexpn manual. as detailed, those modifiers can also be used with parameter expansion. in the case of s/r/l/, parameter
expansion already has a form that canperform substitutions, along with subjecting the search string to additional parameter expanions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.