Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Unexpected alias expansion in history list
- X-seq: zsh-workers 18940
- From: Haakon Riiser <haakon.riiser@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Unexpected alias expansion in history list
- Date: Mon, 11 Aug 2003 00:19:07 +0200
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
The following "bug" is probably not important, since it only
happens in a syntactically illegal command, but I chose to report
it anyway, in case the bug has other (more serious) symptomps.
Steps to reproduce:
% zsh -f
% alias foo='foo bar'
% (foo) foo
zsh: parse error near `foo'
% history
1 alias foo='foo bar'
2 (foo) foo bar
^^^^^^^
Here, the second "foo" has been expanded. This only happens when
the first word in the alias expansion is the same as the name of
the alias being expanded.
Verified on the following systems:
zsh 4.1.1 (i686-pc-linux-gnu)
zsh 4.0.2 (i686-pc-linux-gnu)
zsh 4.0.2 (sparc-sun-solaris2.6)
zsh 3.0.6 (sparc-sun-solaris2.6)
--
Haakon
Messages sorted by:
Reverse Date,
Date,
Thread,
Author