From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16890 invoked from network); 20 Jul 2006 09:48:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Jul 2006 09:48:41 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 25691 invoked from network); 20 Jul 2006 09:48:35 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Jul 2006 09:48:35 -0000 Received: (qmail 12980 invoked by alias); 20 Jul 2006 09:48:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10534 Received: (qmail 12971 invoked from network); 20 Jul 2006 09:48:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Jul 2006 09:48:27 -0000 Received: (qmail 24647 invoked from network); 20 Jul 2006 09:48:27 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 20 Jul 2006 09:48:26 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly25d.srv.mailcontrol.com (MailControl) with ESMTP id k6K9mD70012722 for ; Thu, 20 Jul 2006 10:48:25 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Jul 2006 10:47:19 +0100 Date: Thu, 20 Jul 2006 10:47:19 +0100 From: Peter Stephenson To: zsh-users@sunsite.dk Subject: Re: Does zsh have an equivalent to the shopt command ? Message-Id: <20060720104719.708b78db.pws@csr.com> In-Reply-To: <20060719180657.GA7276@princo> References: <96c45c490607190944n5dabb6acwffe9f4255f9a0d7@mail.gmail.com> <20060719180657.GA7276@princo> Organization: Cambridge Silicon Radio X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.6.7; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Jul 2006 09:47:19.0396 (UTC) FILETIME=[7DD85A40:01C6ABE1] X-Scanned-By: MailControl A-07-00-10 (www.mailcontrol.com) on 10.68.0.135 Jean-Rene David wrote: > * Sean [2006.07.19 12:45]: > > zsh chokes on this line in a script: > > > > shopt -s extglob > > > > Is there an alternative for use in zsh ? > > setopt extendedglob However, the globbing syntax enabled by bash's extglob option is the ksh-style with parentheses introduced by ?, @, *, + or !. If you need this syntax in zsh, you should "setopt kshglob". -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php