From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10021 invoked from network); 29 May 2000 12:31:22 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 May 2000 12:31:22 -0000 Received: (qmail 8530 invoked by alias); 29 May 2000 12:30:49 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3100 Received: (qmail 8523 invoked from network); 29 May 2000 12:30:49 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "ZSH User List" Subject: RE: strange alias effects Date: Mon, 29 May 2000 16:30:44 +0400 Message-ID: <000001bfc969$b5890c70$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-reply-to: <20000529141336.A31206@br-online.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??? > I cannot reproduce it. I tried to add the same lines alias foo='echo xxx' bar() { foo } to both ~/.zshenv and ~/.zshrc. In both cases it works as expected. Sourcing file with the above defintions from .zshrc works as well. This is with current CVS version. > > PS: cc to me is not necessary. I am usually subscribed to the lists > I post to. :-) > Well, unfortunately, to be able to reply to list I have to use "Reply to all" ... and manually removing recipients every time ... It is exactly the reason I have procmail recipe that removes duplicates ;-0 -andrej