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

file globbing



Say I have these files:

     0 [2021-08-05--07:58] d,1
     0 [2021-08-05--07:59] d,1,first
     0 [2021-08-05--07:59] d,1,second

I want a glob that captures them all but:

    $ print -l d,1[^[:digit:]]*(N)
    d,1,first
    d,1,second

... I need a second go:

    $ print -l d,1
    d,1

I'm expecting that no character after the '1' in 'd,1' is 'not a digit', so the first filter should capture 'd,1', but as we see, the second filter is needed.  It seems that the first filter should read: "not a digit but not nothing either".  Can the first filter  be improved to grab them all?





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