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

Re: more file filtering (e::), stest, perl (Re: A question about filename generate)



On Mon, Jul 28, 2025 at 09:52:34AM -0700, Bart Schaefer wrote:
> > if you read the 'FILENAME GENERATION' section from zshexpn, you'll see
> > that ^x exists, x~y exists but there is no thing such x^y.

> Not precisely true, as PWS mentioned.

Indeed. I learned from this post and realized I needed wasn't
understanding the whole thing. I didn't dig that much because of way I
read the manual so ...

> This could perhaps be clarified in the manual.

definitely!

> You can append ^y to a pattern but x^y doesn't imply
> precedence than ^ so

very interesting with tools like tex which create a lot of garbage while
compiling documents.

touch doc.{aux,div,log,tex,pdf}
ls doc.^(pdf|tex)

> % print configure*
> configure configure.ac configure.ac.orig

this example is nice too. also the ongoing thread is very interesting!

thanks a lot to everyone!

regards

-- 
Marc Chantreux
Pôle CESAR (Calcul et services avancés à la recherche)
Université de Strasbourg
14 rue René Descartes,
BP 80010, 67084 STRASBOURG CEDEX
03.68.85.60.79

Attachment: signature.asc
Description: PGP signature



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