From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15485 invoked from network); 6 Jun 2007 08:58:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.2.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Jun 2007 08:58:53 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 20418 invoked from network); 6 Jun 2007 08:58:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Jun 2007 08:58:45 -0000 Received: (qmail 24764 invoked by alias); 6 Jun 2007 08:58:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23530 Received: (qmail 24755 invoked from network); 6 Jun 2007 08:58:41 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Jun 2007 08:58:41 -0000 Received: (qmail 20123 invoked from network); 6 Jun 2007 08:58:41 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 6 Jun 2007 08:58:38 -0000 Received: from rly07d.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly07d.srv.mailcontrol.com (MailControl) with ESMTP id l568wXwI009366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 6 Jun 2007 09:58:33 +0100 Received: from submission.mailcontrol.com (submission.mailcontrol.com [86.111.216.190]) by rly07d.srv.mailcontrol.com (MailControl) id l568vmPs006342 for zsh-workers@sunsite.dk; Wed, 6 Jun 2007 09:57:48 +0100 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly07d-eth0.srv.mailcontrol.com (envelope-sender Peter.Stephenson@csr.com) (MIMEDefang) with ESMTP id l568vjU4006230; Wed, 06 Jun 2007 09:57:48 +0100 (BST) Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Wed, 6 Jun 2007 09:56:28 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.8/8.13.4) with ESMTP id l568uSjZ012034; Wed, 6 Jun 2007 09:56:28 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.8/8.13.8/Submit) with ESMTP id l568uSML012031; Wed, 6 Jun 2007 09:56:28 +0100 Message-Id: <200706060856.l568uSML012031@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: Zrajm C Akfohg , zsh-workers@sunsite.dk Subject: Re: zsh-4.3.2 fails to run .zcompdump when an "alias -g" is in it In-reply-to: <20070605225952.GA61945@redoubt.spodhuis.org> References: <20070605225952.GA61945@redoubt.spodhuis.org> Comments: In-reply-to Phil Pennock message dated "Tue, 05 Jun 2007 15:59:52 -0700." Date: Wed, 06 Jun 2007 09:56:28 +0100 From: Peter Stephenson X-OriginalArrivalTime: 06 Jun 2007 08:56:28.0716 (UTC) FILETIME=[921946C0:01C7A818] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-07-05 (www.mailcontrol.com) on 10.68.1.117 Phil Pennock wrote: > > Thus, zsh should generate a .zcompdump file in which the keys in all > > associative arrays are quoted, to avoid having them expanded as aliases. > > Try this; fortunately, it's an easy change: the parameter expansion flag > 'q' can be doubled to use single-quote quoting instead of backslash > escaping. I've committed this, but in principle you can have a global alias for anything, even a quoted expression; it might be better to have the shell save and restore the state of the noaliases option for the dumpfile, something like: integer aliases { [[ -o aliases ]] && aliases=1 setopt noaliases ... } always { (( aliases )) && setopt aliases } It's a pity this isn't easier in a dot file. -- 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 To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview