From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 788 invoked from network); 17 May 2004 19:14:59 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?yNSzEp8nVX6MkRyjC2Z6HqJJakfZMhH6?@203.24.36.3) by ns1.primenet.com.au with SMTP; 17 May 2004 19:14:59 -0000 Received: (qmail 21444 invoked from network); 17 May 2004 15:08:42 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by proxy.melb.primenet.com.au with SMTP; 17 May 2004 15:08:42 -0000 Received: (qmail 26957 invoked from network); 17 May 2004 15:07:08 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 May 2004 15:07:08 -0000 Received: (qmail 24112 invoked by alias); 17 May 2004 15:06:56 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7460 Received: (qmail 24102 invoked from network); 17 May 2004 15:06:56 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 17 May 2004 15:06:53 -0000 Received: (qmail 26163 invoked from network); 17 May 2004 15:06:52 -0000 Received: from vinc17.net1.nerim.net (HELO ay.vinc17.org) (62.4.18.82) by a.mx.sunsite.dk with SMTP; 17 May 2004 15:06:50 -0000 Received: from lefevre by ay.vinc17.org with local (Exim 4.32) id 1BPjh9-00038H-AC; Mon, 17 May 2004 17:06:23 +0200 Date: Mon, 17 May 2004 17:06:23 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: Recursive globbing Message-ID: <20040517150623.GG7161@ay.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <232.1084532088@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.6i Sender: Vincent Lefevre X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On 2004-05-14 09:10:13 -0700, Bart Schaefer wrote: > No; please please don't do this. Consider: > > foo='x*' > > print ${~foo}* > > Or > > bar="$foo*" > print $~bar > > Completely unexpected results. > > Also it seriously breaks sh compatibility, so at the very least it should > be disabled when SH_GLOB or similar options are in effect. > > There's a reason that only **/ and not blather**/ is special. Then there's a problem with **/ : foo='*' print ${~foo}*/ -- Vincent Lefèvre - Web: 100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17, Championnat International des Jeux Mathématiques et Logiques, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA