From: Aaron Davies <agdavi01@louisville.edu>
To: zsh-users@sunsite.dk
Subject: Re: Globbing for Empty Directories?
Date: Sun, 28 Mar 2004 18:55:42 -0500 [thread overview]
Message-ID: <6BEBEF33-8113-11D8-913F-000502631FBD@louisville.edu> (raw)
In-Reply-To: <1040328205512.ZM26295@candle.brasslantern.com>
On Sunday, March 28, 2004, at 03:55 PM, Bart Schaefer wrote:
> On Mar 28, 3:13pm, Aaron Davies wrote:
> } Subject: Re: Globbing for Empty Directories?
> }
> } On Sunday, March 28, 2004, at 02:21 PM, Bart Schaefer wrote:
> }
> } > It's not possible to tell if a directory is empty without actually
> } > looking for files in it.
> }
> } Thanks much. In that case, could I make this a feature request?
>
> What I meant was, the filesystem typically doesn't provide any way to
> discover whether a directory is empty without looking for files in it.
>
> So even if zsh implemented an "empty directory" globbing flag
> internally,
> it'd be doing effectively the same thing as the function I showed. And
> that must be what "find ... -empty" is doing as well.
Alright then. It'd still be a nice thing to have in zsh. Is it a policy
that globbing be limited to things the filesystem can tell you directly?
--
__ __
/ ) / )
/--/ __. __ ________ / / __. , __o _ _
/ (_(_/|_/ (_(_) / / <_ /__/_(_/|_\/ <__</_/_)_
next prev parent reply other threads:[~2004-03-28 23:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-28 7:00 Aaron Davies
2004-03-28 19:21 ` Bart Schaefer
2004-03-28 20:13 ` Aaron Davies
2004-03-28 20:55 ` Bart Schaefer
2004-03-28 23:55 ` Aaron Davies [this message]
2004-03-29 0:54 ` Bart Schaefer
2004-03-29 6:05 ` Aaron Davies
2004-03-28 19:49 ` DervishD
2004-03-29 6:03 ` Aaron Davies
2004-03-29 13:28 ` DervishD
2004-03-29 15:19 ` Danek Duvall
2004-03-29 15:57 ` DervishD
2004-03-29 23:11 ` Aaron Davies
2004-03-29 23:24 ` DervishD
2004-03-31 1:44 ` Aaron Davies
2004-03-31 8:44 ` DervishD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6BEBEF33-8113-11D8-913F-000502631FBD@louisville.edu \
--to=agdavi01@louisville.edu \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).