From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14705 invoked from network); 3 Sep 1999 15:01:29 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Sep 1999 15:01:29 -0000 Received: (qmail 1863 invoked by alias); 3 Sep 1999 15:01:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7638 Received: (qmail 1856 invoked from network); 3 Sep 1999 15:01:17 -0000 From: "Bart Schaefer" Message-Id: <990903150105.ZM26321@candle.brasslantern.com> Date: Fri, 3 Sep 1999 15:01:05 +0000 In-Reply-To: <199909031443.QAA168553@hydra.ifh.de> Comments: In reply to Peter Stephenson "PATCH: 3.1.6-pws-2: globbing documentation" (Sep 3, 4:43pm) References: <199909031443.QAA168553@hydra.ifh.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: PATCH: 3.1.6-pws-2: globbing documentation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 3, 4:43pm, Peter Stephenson wrote: } Subject: PATCH: 3.1.6-pws-2: globbing documentation } } This clarifies the globbing documentation in ways which should be } familiar from recent discussions. Please look at it and say if you } think that it has the opposite effect. Well ... } +Note that grouping cannot extend over multiple directories: it is an error } +to have a `tt(/)' within a group (this only applies for patterns which } +match filenames). I'd change "which match filenames" to "used in filename generation". If I do for file in /etc/host* ; do ...; done I tend to think of $file as "a filename" inside the loop body, but I can still use [[ $file = (*/)# ]] without getting "bad pattern." Then down here: } +As a shorthand, `tt(**/)' is equivalent to `tt((*/)#)'; note that this } +therefore matches files in the current directory as well as } +subdirectories. Wait, we just said that (*/)# was not a legal pattern! How can **/ be a shorthand for it? What we really mean (now) is that ** is a _replacement_ (or "alternative" or some such word) for (*/)#, right? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com