From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24098 invoked from network); 3 Mar 2009 17:33:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Mar 2009 17:33:29 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 62534 invoked from network); 3 Mar 2009 17:33:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Mar 2009 17:33:23 -0000 Received: (qmail 14781 invoked by alias); 3 Mar 2009 17:33:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26676 Received: (qmail 14772 invoked from network); 3 Mar 2009 17:33:18 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 3 Mar 2009 17:33:18 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id AB8F38058F82 for ; Tue, 3 Mar 2009 18:33:15 +0100 (CET) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly28g.srv.mailcontrol.com (MailControl) with ESMTP id n23HX4Po005747 for ; Tue, 3 Mar 2009 17:33:10 GMT Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Tue, 3 Mar 2009 17:33:04 +0000 Date: Tue, 3 Mar 2009 17:33:03 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: zsh regards reserved word as candidate for alias substitution Message-ID: <20090303173303.3f9360e3@news01> In-Reply-To: <20090303172324.72e939c8@news01> References: <20090225001717.GU1246@prunille.vinc17.org> <20090303172324.72e939c8@news01> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Mar 2009 17:33:04.0481 (UTC) FILETIME=[1BBCAD10:01C99C26] X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 10.71.0.138 X-Virus-Scanned: ClamAV 0.92.1/9065/Tue Mar 3 11:43:41 2009 on bifrost X-Virus-Status: Clean On Tue, 3 Mar 2009 17:23:24 +0000 Peter Stephenson wrote: > +but the alias will never be expanded. Reserved words are Probably better: Index: Doc/Zsh/options.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Doc/Zsh/options.yo,v retrieving revision 1.77 diff -u -r1.77 options.yo --- Doc/Zsh/options.yo 3 Mar 2009 17:26:07 -0000 1.77 +++ Doc/Zsh/options.yo 3 Mar 2009 17:31:57 -0000 @@ -1715,31 +1715,9 @@ item(tt(POSIX_ALIASES) )( When this option is set, reserved words are not candidates for alias expansion: it is still possible to declare any of them as an alias, -but the alias will never be expanded. Reserved words are -tt(!), -tt([[), -tt({), -tt(}), -tt(case), -tt(coproc), -tt(do), -tt(done), -tt(elif), -tt(else), -tt(end), -tt(esac), -tt(fi), -tt(for), -tt(foreach), -tt(function), -tt(if), -tt(nocorrect), -tt(repeat), -tt(select), -tt(then), -tt(time), -tt(until), -tt(while). +but the alias will never be expanded. Reserved words are described in +ifnzman(noderef(Reserved Words))\ +ifzman(the section RESERVED WORDS in zmanref(zshmisc)). Alias expansion takes place while text is being read; hence when this option is set it does not take effect until the end of any function or -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070