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

Re: quick and dirty test for empty directory




On 2022-11-16 08:23, Roman Perepelitsa wrote:
[[ -n $dir(#qNF) ]] && print -r -- "$dir is a non-empty directory"

Looks good.  And seems to obviate the '-d' test as well.






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