* Re: Bug#516998: zsh regards reserved word as candidate for alias substitution
[not found] <20090224231846.GA15279@vin.lip.ens-lyon.fr>
@ 2009-03-25 14:49 ` Clint Adams
2009-03-25 16:23 ` Peter Stephenson
0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2009-03-25 14:49 UTC (permalink / raw)
To: Vincent Lefevre, 516998; +Cc: zsh-workers
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug#516998: zsh regards reserved word as candidate for alias substitution
2009-03-25 14:49 ` Bug#516998: zsh regards reserved word as candidate for alias substitution Clint Adams
@ 2009-03-25 16:23 ` Peter Stephenson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2009-03-25 16:23 UTC (permalink / raw)
To: 516998, zsh-workers
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@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-25 16:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20090224231846.GA15279@vin.lip.ens-lyon.fr>
2009-03-25 14:49 ` Bug#516998: zsh regards reserved word as candidate for alias substitution Clint Adams
2009-03-25 16:23 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).