Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
aliases expanding aliases: a bug?
- X-seq: zsh-users 14621
- From: Jay Berkenbilt <ejb@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: aliases expanding aliases: a bug?
- Date: Tue, 01 Dec 2009 15:00:53 -0500
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I just downloaded zsh 4.3.10, and I am able to reproduce this problem
with that version. It appears that if an alias ends with a space,
arguments that themselves happen to be aliases are expanded, at least in
some cases. Here's an example:
$ zsh -f
host% alias a1='echo'
host% alias a2='echo '
host% alias moo=quack
host% a1 moo
moo
host% a2 moo
quack
I can't imagine that this is desirable or intended behavior. It's also
hard for me to see why one would have to have a trailing space in an
alias that was expected to take arguments, but regardless, it still
seems like a possible bug.
Comments?
--
Jay Berkenbilt <ejb@xxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author