zsh-users
 help / color / mirror / code / Atom feed
* Maildir empty?
@ 2004-07-12  7:37 Klaus Wacker
  2004-07-12  9:43 ` DervishD
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Klaus Wacker @ 2004-07-12  7:37 UTC (permalink / raw)
  To: ZSH User List

Dear zsh, is there a zsh-internal way to find out whether a maildir is
empty? Or more generally, whether a directory tree contains no
files? The following test ($i is the pathname of the maildir):

    if [[ $(echo $i/*/* | wc -w) -eq 0 ]]

works with `setopt extendedglob nullglob', but I am sure there is some
combination of {}[]()$#@% which avoids spawning of a subshell and an
external program. 


-- 
Klaus Wacker              wacker@Physik.Uni-Dortmund.DE
Experimentelle Physik V   http://www.physik.uni-dortmund.de/~wacker
Universitaet Dortmund     Tel.: +49 231 755 3587
D-44221 Dortmund          Fax:  +49 231 755 4547


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-07-13 19:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-12  7:37 Maildir empty? Klaus Wacker
2004-07-12  9:43 ` DervishD
2004-07-12  9:44 ` Oliver Kiddle
2004-07-12 12:41   ` Klaus Wacker
2004-07-12 13:22     ` DervishD
2004-07-12 14:09       ` Klaus Wacker
2004-07-12 14:33         ` DervishD
2004-07-12 18:04           ` Peter Whaite
2004-07-13 18:28             ` Dan Nelson
2004-07-12 10:00 ` Peter Stephenson
2004-07-12 14:17   ` Klaus Wacker
2004-07-12 14:44     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).