Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: quick and dirty test for empty directory
- X-seq: zsh-users 28397
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: quick and dirty test for empty directory
- Date: Wed, 16 Nov 2022 10:00:11 -0800
- Archived-at: <https://zsh.org/users/28397>
- In-reply-to: <CAN=4vMpvUnyaFOqq+PVzt_dvjetTzpnWGy39b=t8T_g987VfDA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <620799bc-8224-7cf3-b1c5-2ae5467f0a98@eastlink.ca> <CAN=4vMpvUnyaFOqq+PVzt_dvjetTzpnWGy39b=t8T_g987VfDA@mail.gmail.com>
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