Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#516998: zsh regards reserved word as candidate for alias substitution
- X-seq: zsh-workers 26787
- From: Peter Stephenson <pws@xxxxxxx>
- To: 516998@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#516998: zsh regards reserved word as candidate for alias substitution
- Date: Wed, 25 Mar 2009 16:23:28 +0000
- In-reply-to: <20090325144931.GA9330@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090224231846.GA15279@xxxxxxxxxxxxxxxxxxx> <20090325144931.GA9330@xxxxxxxx>
Clint Adams wrote:
> On Wed, Feb 25, 2009 at 12:18:46AM +0100, Vincent Lefevre wrote:
> > 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.
>
> Where it seems that "correctly" means that setting the alias
> succeeds, but ! is never substituted.
This was fixed in 26675.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author