From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11698 invoked from network); 1 Sep 1999 17:47:06 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 1 Sep 1999 17:47:06 -0000 Received: (qmail 25360 invoked by alias); 1 Sep 1999 17:46:30 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2549 Received: (qmail 25353 invoked from network); 1 Sep 1999 17:46:28 -0000 From: "Bart Schaefer" Message-Id: <990901174608.ZM19896@candle.brasslantern.com> Date: Wed, 1 Sep 1999 17:46:08 +0000 In-Reply-To: <19990901101116.A8076@youkaidi.irisa.fr> Comments: In reply to Hubert Canon "strange glob expansion" (Sep 1, 10:11am) References: <19990901101116.A8076@youkaidi.irisa.fr> X-Mailer: Z-Mail (5.0.0 30July97) To: Hubert Canon , zsh-users@sunsite.auc.dk Subject: Re: strange glob expansion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 1, 10:11am, Hubert Canon wrote: } Subject: strange glob expansion } } I tried something like this : } } % echo .scwm/(chan*|**/scwmrc*) Directory separators can't be used inside parentheses. Parenthesized patterns match within one level of file hierarchy only. (The '/' may still be useful when matching against strings, as in a `case' label, but doesn't work when globbing.) Since ** matches in the current directory as well as in subdirectories, what you really wanted was % echo .scwm/**/(chan*|scwmrc*) Or perhaps % echo .scwm/{chan*,**/scwmrc*} Or maybe (if you have extendedglob set) % echo .scwm/**/(chan*|scwmrc*)~*/*/chan* Where the trailing bit with the tilde excludes files that match chan* in subdirectories. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com