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

Re: array filtering



On Sun, Jun 9, 2024, at 6:15 PM, Ray Andrews wrote:
>> No.  These are shell patterns, not regular expressions.  "[^/]*"
> matches one non-"/" character followed by zero or more arbitrary
> characters.
>
> There's regex, there's globbing and then there's shell patterns.

Globbing and string matching both use patterns, with minor differences
regarding the use of "/", ".", and glob qualifiers.

> For me EXTENDED_GLOB is like gravity, it's just there and I don't 
> consider turning it off.

Every time you ask a question without mentioning which non-default
options you have enabled, you're requiring the rest of us to think
about it FOR you.  It's rather inconsiderate.

-- 
vq




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