Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#517008: alias not expanded with zsh -c
- X-seq: zsh-workers 26793
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Bug#517008: alias not expanded with zsh -c
- Date: Thu, 26 Mar 2009 00:35:05 +0100
- Cc: zsh-workers@xxxxxxxxxx, 517008@xxxxxxxxxxxxxxx
- In-reply-to: <090325111130.ZM7836@xxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx, 517008@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090225022850.GA4841@xxxxxxxxxxxxxxxxxxx> <20090325145418.GB9330@xxxxxxxx> <200903251630.n2PGU8sK013449@xxxxxxxxxxxxxx> <20090325172509.79c53d4d@news01> <090325111130.ZM7836@xxxxxxxxxxxxxxxxxxxxxx>
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 <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author