From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6849 invoked from network); 1 Aug 2001 09:53:03 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 1 Aug 2001 09:53:03 -0000 Received: (qmail 15478 invoked by alias); 1 Aug 2001 09:52:16 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4079 Received: (qmail 15425 invoked from network); 1 Aug 2001 09:52:12 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: Borsenkow Andrej To: martin.ebourne@arcordia.com, zsh-users@sunsite.dk Subject: RE: FPATH being reset after .zshenv Date: Wed, 1 Aug 2001 13:52:01 +0400 Message-ID: <001e01c11a6f$9c9902d0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 > > I would like to enable a number of my local functions for autoloading in > all instances of zsh - interactive or otherwise. > > To do this I have modified fpath and registered functions for autoloading > in the .zshenv file, which as I understand it is the only one it will > always execute. > Even this one is skipped if zsh is started with -f or NO_RCS option is set in /etc/zshenv. It is the only file that is garanteed to be executed. > Unfortunately it seems that zsh resets the fpath after executing this file > (it is empty while running the file). It does however, remember the > autoload commands, which obviously then become useless. > I cannot reproduce it. Are you sure it is not reset in any other startup file? -andrej