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

Re: using dynamic patterns on the left hand side of case statement clauses



> On Mar 19, 2020, at 12:38 AM, Phil Pennock
> <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> 
> On 2020-03-18 at 21:29 -0400, Lawrence Velázquez wrote:
>> Search the zshexpn(1) man page for "${~spec}" for a more thorough
>> explanation, but the '~' basically turns GLOB_SUBST on for just
>> that parameter expansion.
> 
> Good stuff, but I'll offer up one refinement: you can turn on
> GLOB_SUBST just for the joining pattern, without turning it on for
> the entire pattern.

Oh whoa, that's neat!

vq


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