zsh-users
 help / color / mirror / code / Atom feed
* zsh libs
@ 2006-06-30 12:40 Marc Chantreux
  2006-06-30 12:56 ` Peter Stephenson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Marc Chantreux @ 2006-06-30 12:40 UTC (permalink / raw)
  To: zsh-users

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@ulpmm.u-strasbg.fr
---------------------------------------


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-30 20:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-30 12:40 zsh libs Marc Chantreux
2006-06-30 12:56 ` Peter Stephenson
2006-06-30 16:27   ` Bart Schaefer
2006-06-30 18:22 ` Prompt truncating Timothy Stone
2006-06-30 19:22 ` Timothy Stone
2006-06-30 20:13   ` Prompt truncating... [CLOSED] Timothy Stone

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).