From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3282 invoked from network); 2 Sep 1997 14:44:18 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 2 Sep 1997 14:44:18 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id KAA12711; Tue, 2 Sep 1997 10:23:49 -0400 (EDT) Resent-Date: Tue, 2 Sep 1997 10:23:49 -0400 (EDT) Sender: rz2a022@rrz.uni-hamburg.de Message-Id: <340C21BB.C9C3CCE@rrz.uni-hamburg.de> Date: Tue, 02 Sep 1997 16:24:59 +0200 From: Bernd Eggink Organization: Regionales Rechenzentrum der Uni Hamburg X-Mailer: Mozilla 4.02b7 [en] (X11; I; Linux 2.0.29 i586) Mime-Version: 1.0 To: Zsh-workers Subject: autoload Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Resent-Message-ID: <"ScKZq3.0.V63.q523q"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3474 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu If a file contains more than one autoload function, strange things happen (3.1.2 and older versions): # File 'f1' function f1() { print $0 $*; } function f2() { print $0 $*; } At the prompt, type autoload f1 f2 fpath=(.) f1 # NOTHING HAPPENS! functions # shows that f1 und f2 are defined f1 # now f1 is called! Only if the definition of f2 is deleted from the file, the first call of f1 works. This must be a bug; it inhibts building a function library in a single file (while linking it to other names if necessary). Regards, Bernd -- Bernd Eggink Regionales Rechenzentrum der Universitaet Hamburg eggink@rrz.uni-hamburg.de http://www.rrz.uni-hamburg.de/eggink/BEggink.html