From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9892 invoked from network); 29 May 2000 12:14:24 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 May 2000 12:14:24 -0000 Received: (qmail 6099 invoked by alias); 29 May 2000 12:13:47 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3099 Received: (qmail 6091 invoked from network); 29 May 2000 12:13:44 -0000 Date: Mon, 29 May 2000 14:13:36 +0200 From: Andy Spiegl To: ZSH User List Subject: Re: strange alias effects Message-ID: <20000529141336.A31206@br-online.de> Mail-Followup-To: ZSH User List References: <000301bfc963$3615d910$21c9ca95@mow.siemens.ru> <000401bfc966$62db4e50$21c9ca95@mow.siemens.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <000401bfc966$62db4e50$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Mon, May 29, 2000 at 04:06:57PM +0400 X-PGP-GPG-Keys: finger pgp.andy@spiegl.de OR mail -s "send pgp" auto@spiegl.de > 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@spiegl.de 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