Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
autoload
- X-seq: zsh-workers 3474
- From: Bernd Eggink <eggink@xxxxxxxxxxxxxxxxxx>
- To: Zsh-workers <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: autoload
- Date: Tue, 02 Sep 1997 16:24:59 +0200
- Organization: Regionales Rechenzentrum der Uni Hamburg
- Sender: rz2a022@xxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxx
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author