From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28399 invoked by alias); 18 Nov 2013 10:45:54 -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: 18146 Received: (qmail 29538 invoked from network); 18 Nov 2013 10:45:46 -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 11:45:43 +0100 From: Dominik Vogt To: zsh-users@zsh.org Subject: Globbing question Message-ID: <20131118104543.GA15404@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13111810-6892-0000-0000-000006EF50FF Assuming I have a directory with some files and some subdirectories, e.g. subdir/ anothersubdir/ ... subdir123/ git/ file anotherfile I'm looking for a globbing pattern that matches all plain files in all subdirectories except "git". The pattern $ ls -d ^git(/) gives me all directories except "git", but the next one produces an error message: $ ls -d ^git(/)/**/*(.) zsh: bad pattern: ^git(/)/**/*(.) So my questions are: 1. Why does this pattern not work; what am I missing? 2. What is the correct pattern for the task at hand? (Note: The reason why I need to exclude "git" from the pattern is that there are too many files in that directory, so I get an "zsh: argument list too long" error.) Ciao Dominik ^_^ ^_^