Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: strange alias effects
- X-seq: zsh-users 3099
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxxxxxx>
- Subject: Re: strange alias effects
- Date: Mon, 29 May 2000 14:13:36 +0200
- In-reply-to: <000401bfc966$62db4e50$21c9ca95@xxxxxxxxxxxxxx>; from Andrej.Borsenkow@xxxxxxxxxxxxxx on Mon, May 29, 2000 at 04:06:57PM +0400
- Mail-followup-to: ZSH User List <zsh-users@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <000301bfc963$3615d910$21c9ca95@xxxxxxxxxxxxxx> <000401bfc966$62db4e50$21c9ca95@xxxxxxxxxxxxxx>
> Sorry, this is of course wrong. You just seem to have alias definition
> *after* function definition. Because aliases are expanded when function
> is *defined*, they are not seen when functnio is executed.
That would make sense to me, but I _do_ have the alias defined before the
function. And since this was no problem until I upgraded to 3.1.7-pre-4
I suspect I found a tiny bug???
> Autoloading provides neat workaround - function body is first read in
> after everything else (including aliases) was already defined. For the
> same reason, second function definition in your example (on command
> line) works as expected - aliases are already known.
Hm, this sounds like a solution, but I'd hate to do that, because I've got
them all nicely sorted by subject in my .zsh/alias. :-(
Thanks,
Andy.
PS: cc to me is not necessary. I am usually subscribed to the lists
I post to. :-)
--
E-Mail: Andy@xxxxxxxxx URL: http://andy.spiegl.de
PGP/GPG: see headers
o _ _ _
--------- __o __o /\_ _ \\o (_)\__/o (_)
------- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/
------ (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein
Messages sorted by:
Reverse Date,
Date,
Thread,
Author