From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18970 invoked from network); 25 Feb 2009 00:17:30 -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.6 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; 25 Feb 2009 00:17:30 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 89711 invoked from network); 25 Feb 2009 00:17:27 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Feb 2009 00:17:27 -0000 Received: (qmail 26555 invoked by alias); 25 Feb 2009 00:17:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26597 Received: (qmail 26545 invoked from network); 25 Feb 2009 00:17:22 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Feb 2009 00:17:22 -0000 Received: from prunille.vinc17.org (vinc17.pck.nerim.net [213.41.242.187]) by bifrost.dotsrc.org (Postfix) with ESMTP id 1EB538059055 for ; Wed, 25 Feb 2009 01:17:18 +0100 (CET) Received: by prunille.vinc17.org (Postfix, from userid 501) id 5E902330451A; Wed, 25 Feb 2009 01:17:17 +0100 (CET) Date: Wed, 25 Feb 2009 01:17:17 +0100 From: Vincent Lefevre To: zsh-workers@sunsite.dk Subject: zsh regards reserved word as candidate for alias substitution Message-ID: <20090225001717.GU1246@prunille.vinc17.org> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.19-vl-r26315 (2009-02-20) X-Virus-Scanned: ClamAV 0.92.1/9041/Tue Feb 24 17:21:07 2009 on bifrost X-Virus-Status: Clean I've reported the following bug on http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516998 POSIX.1-2008 says[*]: 2.3.1 Alias Substitution [...] However, reserved words in correct grammatical context shall not be candidates for alias substitution. [*] http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_03_01 but zsh gives: vin% emulate sh vin% alias !="echo OK" vin% ! foo OK foo vin% instead of running command "foo". ksh93, pdksh, dash and bash in POSIX mode all behave correctly. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)