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

Re: Filtering an array of file names



On Sep 29,  9:54am, Mikael Magnusson wrote:
}
} This should be
}   directories=( ${^allfiles}(/N) )
} unless you have nullglob set

Thanks, and to Daniel also, for pointing out this nuance for the general
case, but in the OP's specific example $allfiles contains only names of
known existing files, so globbing is not expected to fail and (N) would
not be necessary.



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