From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28106 invoked from network); 4 Feb 2005 21:13:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Feb 2005 21:13:48 -0000 Received: (qmail 43093 invoked from network); 4 Feb 2005 21:12:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Feb 2005 21:12:42 -0000 Received: (qmail 924 invoked by alias); 4 Feb 2005 16:31:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8462 Received: (qmail 909 invoked from network); 4 Feb 2005 16:31:33 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Feb 2005 16:31:33 -0000 Received: (qmail 39148 invoked from network); 4 Feb 2005 16:30:57 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 4 Feb 2005 16:30:52 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Fri, 4 Feb 2005 16:29:27 +0000 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 4 Feb 2005 16:30:59 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j14GUpcu026388 for ; Fri, 4 Feb 2005 16:30:52 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j14GUpW8026385 for ; Fri, 4 Feb 2005 16:30:51 GMT Message-Id: <200502041630.j14GUpW8026385@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: Zsh Users Subject: Re: list all except In-reply-to: <20050204113026.GA4217@fruitcom.com> References: <20050204113026.GA4217@fruitcom.com> Date: Fri, 04 Feb 2005 16:30:50 +0000 From: Peter Stephenson X-OriginalArrivalTime: 04 Feb 2005 16:31:00.0016 (UTC) FILETIME=[E91C6B00:01C50AD6] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 Eric Smith wrote: > What is the zsh way to select all files except > those matching a regex? (You mean globbing pattern, not regular expression, right?) Use ^pat, which excludes everything matching pat, or pat1~pat2, which selects based on pat1, then excludes based on pat2. These require extendedglob. For example, setopt extendedglob print -l ^*.o You can also "setopt kshglob" and use the ksh forms that bash now understands. These tend to be clumsier. See the list of "Glob Operators" in the zshexpn manual page. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************