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

Re: A question about filename generate



> On Jul 27, 2025, at 20:06, Marc Chantreux <mc@xxxxxxxxxx> wrote:
> 
>> But I’m still confused (surprised) why OPs original pattern did what it did.
> 
> I just read the explaination from Mikael and Bart: short and clear.
> Isn't it?

Yes.  The key for me here is the y of x~y is a string pattern.

I looked at my zsh cheat sheet and saw two other patterns that I thought I would ask about if anyone would be so kind:

I’m assuming that pat of the expression ^pat is a glob pattern.  And x^y: my guess is that both x and y are glob patterns.







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