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

Re: file globbing



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.  Or, if discussing cosmology:

[^[universe]]

; - )





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