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 8:17 AM Marc Chantreux <mc@xxxxxxxxxx> 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. This could perhaps be clarified
in the manual. You can append ^y to a pattern but x^y doesn't imply
negation of the entirety of x, rather it means "x followed by anything
not y". The precedence is also a little confusing; e.g., * has higher
precedence than ^ so
% print configure*
configure configure.ac configure.ac.orig
% print configure*^.orig
configure configure.ac configure.ac.orig
% print configure^*.orig
configure configure.ac
That is, in x^y the x pattern is fully expanded and then must not be
followed by the y pattern.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author