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

Re: Parameter Expansion



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.




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