From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4448 invoked from network); 29 Mar 2004 06:05:56 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 29 Mar 2004 06:05:56 -0000 Received: (qmail 9763 invoked by alias); 29 Mar 2004 06:05:44 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7291 Received: (qmail 9752 invoked from network); 29 Mar 2004 06:05:44 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 29 Mar 2004 06:05:44 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 29 Mar 2004 6:5:44 -0000 Received: (qmail 32431 invoked from network); 29 Mar 2004 06:05:44 -0000 Received: from sccimhc02.asp.att.net (63.240.76.164) by a.mx.sunsite.dk with SMTP; 29 Mar 2004 06:05:43 -0000 Received: from louisville.edu (12-220-223-80.client.insightbb.com[12.220.223.80]) by sccimhc02.asp.att.net (sccimhc02) with SMTP id <20040329060515im200ro5khe>; Mon, 29 Mar 2004 06:05:15 +0000 Date: Mon, 29 Mar 2004 01:05:14 -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: <1040329005420.ZM26518@candle.brasslantern.com> Message-Id: <0BA28EC3-8147-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 07:54 PM, Bart Schaefer wrote: > On Mar 28, 6:55pm, Aaron Davies wrote: > } > } > So even if zsh implemented an "empty directory" globbing flag > } > internally, it'd be doing effectively the same thing as the > function > } > I showed. > } > } 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? > > I wouldn't say its "a policy", but so far it is a truism, AFAIK. Well, it might not be a policy either, but it seems to me that a worthy goal (and one nearly reached) for zsh's globbing system would be to completely obsolete find. On cursory examination, finding empty directories seems to be the only thing missing. Is there any particular reason it shouldn't be added? -- __ __ / ) / ) /--/ __. __ ________ / / __. , __o _ _ / (_(_/|_/ (_(_) / / <_ /__/_(_/|_\/ <__