From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12267 invoked from network); 28 Mar 2004 23:56:24 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 28 Mar 2004 23:56:24 -0000 Received: (qmail 7374 invoked by alias); 28 Mar 2004 23:56:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7286 Received: (qmail 7298 invoked from network); 28 Mar 2004 23:56:11 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 28 Mar 2004 23:56:11 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 28 Mar 2004 23:56:11 -0000 Received: (qmail 5054 invoked from network); 28 Mar 2004 23:56:11 -0000 Received: from sccmmhc02.asp.att.net (204.127.203.184) by a.mx.sunsite.dk with SMTP; 28 Mar 2004 23:56:10 -0000 Received: from louisville.edu (12-220-223-80.client.insightbb.com[12.220.223.80]) by sccmmhc02.asp.att.net (sccmmhc02) with SMTP id <20040328235541mm2003l25se>; Sun, 28 Mar 2004 23:55:42 +0000 Date: Sun, 28 Mar 2004 18:55:42 -0500 Subject: Re: Globbing for Empty Directories? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v553) From: Aaron Davies To: zsh-users@sunsite.dk Content-Transfer-Encoding: 7bit In-Reply-To: <1040328205512.ZM26295@candle.brasslantern.com> Message-Id: <6BEBEF33-8113-11D8-913F-000502631FBD@louisville.edu> X-Mailer: Apple Mail (2.553) X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: ** X-Spam-Status: No, hits=2.4 required=6.0 tests=FROM_ENDS_IN_NUMS, RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 2.4 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 _ _ / (_(_/|_/ (_(_) / / <_ /__/_(_/|_\/ <__