From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8014 invoked from network); 25 Mar 2009 23:35:23 -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 Mar 2009 23:35:23 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 99102 invoked from network); 25 Mar 2009 23:35:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Mar 2009 23:35:17 -0000 Received: (qmail 16723 invoked by alias); 25 Mar 2009 23:35:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26793 Received: (qmail 16714 invoked from network); 25 Mar 2009 23:35:10 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Mar 2009 23:35:10 -0000 Received: from prunille.vinc17.org (vinc17.pck.nerim.net [213.41.242.187]) by bifrost.dotsrc.org (Postfix) with ESMTP id DA96680590EB for ; Thu, 26 Mar 2009 00:35:06 +0100 (CET) Received: by prunille.vinc17.org (Postfix, from userid 501) id E46A934FCE02; Thu, 26 Mar 2009 00:35:05 +0100 (CET) Date: Thu, 26 Mar 2009 00:35:05 +0100 From: Vincent Lefevre To: Bart Schaefer Cc: zsh-workers@sunsite.dk, 517008@bugs.debian.org Subject: Re: Bug#517008: alias not expanded with zsh -c Message-ID: <20090325233505.GB24325@prunille.vinc17.org> Mail-Followup-To: Bart Schaefer , zsh-workers@sunsite.dk, 517008@bugs.debian.org References: <20090225022850.GA4841@vin.lip.ens-lyon.fr> <20090325145418.GB9330@scru.org> <200903251630.n2PGU8sK013449@news01.csr.com> <20090325172509.79c53d4d@news01> <090325111130.ZM7836@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <090325111130.ZM7836@torch.brasslantern.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.19-vl-r28329 (2009-03-19) X-Virus-Scanned: ClamAV 0.92.1/9168/Wed Mar 25 22:01:16 2009 on bifrost X-Virus-Status: Clean On 2009-03-25 11:11:28 -0700, Bart Schaefer wrote: > On Mar 25, 5:25pm, Peter Stephenson wrote: > } Subject: Re: Bug#517008: alias not expanded with zsh -c > } > } > Yes, at least as far as native zsh mode goes this isn't a bug. > } > } I should also have pointed out that the "emulate sh" doesn't make any > } difference, it only takes effect after the string for -c has already been > } parsed---it's basically the same issue as the alias expansion one itself. > > It's my recollection that the discussion of this on the austin-group list > led to the conclusion that zsh's native behavior in this case is within > the allowed variation in the POSIX spec. Vincent, if you're reading this, > do you disagree, and can you point out why? Yes, this is allowed: David Korn said that the standard doesn't explain how the shell reads and processes commands. See: https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=show_archive.tpl&source=L&listname=austin-group-l&id=12011 All on this subject: https://www.opengroup.org/sophocles/show_archive.tpl?source=L&listname=austin-group-l&first=1&pagesize=20&searchstring=alias+substitution+--+shells+differ&zone=G -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)