From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28773 invoked by alias); 18 Nov 2013 11:42:05 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18148 Received: (qmail 8203 invoked from network); 18 Nov 2013 11:41:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Date: Mon, 18 Nov 2013 12:31:34 +0100 From: Dominik Vogt To: zsh-users@zsh.org Subject: Re: Globbing question Message-ID: <20131118113134.GA21922@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com Mail-Followup-To: zsh-users@zsh.org References: <20131118104543.GA15404@linux.vnet.ibm.com> <20131118110014.504fd024@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131118110014.504fd024@pwslap01u.europe.root.pri> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13111811-4966-0000-0000-00000788FDC4 On Mon, Nov 18, 2013 at 11:00:14AM +0000, Peter Stephenson wrote: > On Mon, 18 Nov 2013 11:45:43 +0100 > Dominik Vogt wrote: > > I'm looking for a globbing pattern that matches all plain files in > > all subdirectories except "git". > > (^git)/**/*(.) Thanks. > If you want to avoid matching git recursively in subdirectories, too, > you need EXTENDED_GLOB and > > (^git/)##**/*(.) I guess you meant (^git)##**/*(.) (without the slash in the parentheses) because otherwise it does not work. > and you'd remove the second "#" to include files in the current > directory. Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany