Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh libs
- X-seq: zsh-users 10456
- From: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: zsh libs
- Date: Fri, 30 Jun 2006 14:40:50 +0200
- Mail-followup-to: zsh-users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
hello,
Few days ago, Nikolai Weibull told us about autoload to deal with
namespaces. I'm trying to use this tips for my own libs.
I load my new lib with autoload -U but when i execute the function for
the first time, it wasn't executed.
does anyone knows why ?
> fpath+=$PWD
> cat ldap/new
#autoload ldap/read ldap/write ldap/new
ldap/new () { print "new ..." }
ldap/read () { print "reading ..." }
ldap/write () { print "writting ..." }
> autoload -U !$
autoload -U ldap/new
> ldap/new
> ldap/new
new ...
> autoload -U ldap/write
> ldap/write
writting ...
>
regards,
--
téléphone : 03.90.24.00.19
courriel : marc.chantreux@xxxxxxxxxxxxxxxxxx
---------------------------------------
Messages sorted by:
Reverse Date,
Date,
Thread,
Author