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

Re: Filtering an array of file names



Bart Schaefer wrote on Thu, Sep 29, 2016 at 00:18:53 -0700:
>   directories=( ${^allfiles}(/) )

Use the (N) qualifier if it's possible to have zero matches:

    directories=( ${^allfiles}(/N) )



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