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

Re: file globbing



On Thu, Aug 5, 2021, at 12:05 PM, Ray Andrews wrote:
> On 2021-08-05 8:36 a.m., Peter Stephenson wrote:
> >> On 05 August 2021 at 16:27 Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> >>
> > d,1^[[:digit:]]*
> >
> >
> Cool.  I thought zsh always used ' [:digit:]' not the double bracket 
> form.  But at least the above is easy to parse by eye, the caret is 
> intuitive there. Perhaps we could interpret '[^[:digit:]]' as saying 
> that since the outermost bracket is outside the caret, there must be 
> something rather than nothing.

[^[:digit:]] already means "a character that is not a digit".

-- 
vq




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