From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29248 invoked from network); 23 Jul 2005 05:11:15 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Jul 2005 05:11:15 -0000 Received: (qmail 28618 invoked from network); 23 Jul 2005 05:11:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jul 2005 05:11:09 -0000 Received: (qmail 17799 invoked by alias); 23 Jul 2005 05:11:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21502 Received: (qmail 17790 invoked from network); 23 Jul 2005 05:11:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Jul 2005 05:11:06 -0000 Received: (qmail 28304 invoked from network); 23 Jul 2005 05:11:06 -0000 Received: from vms040pub.verizon.net (206.46.252.40) by a.mx.sunsite.dk with SMTP; 23 Jul 2005 05:11:02 -0000 Received: from candle.brasslantern.com ([71.116.88.149]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IK2001MAEECZSV8@vms040.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 23 Jul 2005 00:11:01 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j6N5Axnq010319 for ; Fri, 22 Jul 2005 22:10:59 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j6N5AwI5010318 for zsh-workers@sunsite.dk; Fri, 22 Jul 2005 22:10:58 -0700 Date: Sat, 23 Jul 2005 05:10:57 +0000 From: Bart Schaefer Subject: Re: PATCH: Re: Implementation of simple newuser module (how to start?) In-reply-to: <200507201804.j6KI474K004991@news01.csr.com> To: zsh-workers@sunsite.dk Message-id: <1050723051057.ZM10317@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <200507201401.j6KE1k5i004733@news01.csr.com> <200507201804.j6KI474K004991@news01.csr.com> Comments: In reply to Peter Stephenson "Re: PATCH: Re: Implementation of simple newuser module (how to start?)" (Jul 20, 7:04pm) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Jul 20, 7:04pm, Peter Stephenson wrote: } Subject: Re: PATCH: Re: Implementation of simple newuser module (how to st } } Here's a basic newuser script to be installed and the outline of the } function that will be doing the work. } } +# zsh script sourced at startup when a user is found to have } +# no startup files. See the documentation for the zsh/newuser } +# module in zshmodules(1). } + } +autoload -U zsh-install-newuser } +zsh-install-newuser I suggest that instead this be: autoload -U +X zsh-install-newuser && zsh-install-newuser That is, don't execute the function if it can't be autoloaded, and don't redefine it if it is already defined.