From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15695 invoked from network); 8 Dec 2003 17:36:47 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 8 Dec 2003 17:36:47 -0000 Received: (qmail 19596 invoked by alias); 8 Dec 2003 17:36:30 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6850 Received: (qmail 19562 invoked from network); 8 Dec 2003 17:36:30 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 8 Dec 2003 17:36:30 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [195.197.252.71] by sunsite.dk (MessageWall 1.0.8) with SMTP; 8 Dec 2003 17:36:30 -0000 Received: from azure by lynx.tre-1.ionific.com with local (Exim 3.35 #1 (Debian)) id 1ATPJ8-0005gX-00; Mon, 08 Dec 2003 19:36:30 +0200 To: "Zsh Users' List" Subject: Re: Excluding files in CVS directories in filename generation Mail-copies-to: nobody From: Hannu Koivisto Date: Mon, 08 Dec 2003 19:36:30 +0200 In-Reply-To: <10346.1070904549@csr.com> (Peter Stephenson's message of "Mon, 08 Dec 2003 17:29:09 +0000") Message-ID: <87r7zffbz5.fsf@lynx.tre-1.ionific.com> User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386-debian-linux-gnu) References: <10346.1070904549@csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Hannu Koivisto Peter Stephenson writes: > Yes, indeed. Luckily, you can do: > > (^CVS/)#*(.) > > This is the more general form of ** --- the pattern in the parentheses > is used (here anything but the string CVS) instead of a `*' to match > directory names. More precisely, > **/ > (*/)# > are equivalent. That's why you don't need another / after the > parentheses. Excellent, thanks! I was aware of the general form but couldn't think of actually using it to solve this problem :) I would be interested to know why **/*~**/CVS/*(.) didn't work, though. -- Hannu