From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20904 invoked from network); 30 Jun 2006 12:39:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Jun 2006 12:39:41 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 93792 invoked from network); 30 Jun 2006 12:39:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Jun 2006 12:39:33 -0000 Received: (qmail 25501 invoked by alias); 30 Jun 2006 12:39:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10456 Received: (qmail 25491 invoked from network); 30 Jun 2006 12:39:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 30 Jun 2006 12:39:26 -0000 Received: (qmail 92695 invoked from network); 30 Jun 2006 12:39:26 -0000 Received: from mailhost.u-strasbg.fr (130.79.200.154) by a.mx.sunsite.dk with SMTP; 30 Jun 2006 12:39:24 -0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.13.6/jtpda-5.5pre1) with ESMTP id k5UCdMN1065007 for ; Fri, 30 Jun 2006 14:39:22 +0200 (CEST) Received: from xpeerience.u-strasbg.fr (xpeerience.u-strasbg.fr [130.79.188.35]) by baal.u-strasbg.fr (8.13.7/jtpda-5.5pre1) with ESMTP id k5UCdMSS006238 for ; Fri, 30 Jun 2006 14:39:22 +0200 (CEST) Received: by xpeerience.u-strasbg.fr (Postfix, from userid 1000) id 370AFD2C71; Fri, 30 Jun 2006 14:40:51 +0200 (CEST) Date: Fri, 30 Jun 2006 14:40:50 +0200 From: Marc Chantreux To: zsh-users Subject: zsh libs Message-ID: <20060630124048.GA18152@ulpmm.u-strasbg.fr> Mail-Followup-To: zsh-users MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.5.11+cvs20060403 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (mailhost.u-strasbg.fr [IPv6:2001:660:2402::154]); Fri, 30 Jun 2006 14:39:22 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.2/1578/Fri Jun 30 11:34:32 2006 on mr4.u-strasbg.fr X-Virus-Status: Clean 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 ?=20 > fpath+=3D$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, --=20 t=E9l=E9phone : 03.90.24.00.19 courriel : marc.chantreux@ulpmm.u-strasbg.fr ---------------------------------------