Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh regards reserved word as candidate for alias substitution
- X-seq: zsh-workers 26597
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: zsh regards reserved word as candidate for alias substitution
- Date: Wed, 25 Feb 2009 01:17:17 +0100
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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 <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