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
- X-seq: zsh-workers 45580
- From: Lawrence Velázquez <vq@xxxxxxxxx>
- To: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- Subject: Re: using dynamic patterns on the left hand side of case statement clauses
- Date: Thu, 19 Mar 2020 01:25:55 -0400
- Cc: scowles@xxxxxxxx, zsh-workers@xxxxxxx
- In-reply-to: <20200319043802.GA27914@fullerene>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <alpine.DEB.2.21.2003181539320.8081@ckhb02> <AF902420-F42E-4C0A-B33F-65993E9DD89F@larryv.me> <20200319043802.GA27914@fullerene>
> 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