From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15977 invoked from network); 20 Feb 2006 11:10:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) 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.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Feb 2006 11:10:00 -0000 Received: (qmail 93286 invoked from network); 20 Feb 2006 11:09:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Feb 2006 11:09:42 -0000 Received: (qmail 20129 invoked by alias); 20 Feb 2006 11:09:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22291 Received: (qmail 20120 invoked from network); 20 Feb 2006 11:09:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Feb 2006 11:09:38 -0000 Received: (qmail 93014 invoked from network); 20 Feb 2006 11:09:38 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 20 Feb 2006 11:09:37 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly05c.srv.mailcontrol.com (MailControl) with ESMTP id k1KB8LZX010426 for ; Mon, 20 Feb 2006 11:09:34 GMT Received: from csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 20 Feb 2006 11:09:31 +0000 To: zsh-workers@sunsite.dk Subject: Re: newuser in 4.3.0-dev-4 (Was: PATCH: newuser system) In-reply-to: References: <200602181257.k1ICvcnk028384@pwslaptop.csr.com> Comments: In-reply-to Geoff Wing message dated "Sun, 19 Feb 2006 05:13:58 +0000." Date: Mon, 20 Feb 2006 11:09:17 +0000 From: Peter Stephenson Message-ID: X-OriginalArrivalTime: 20 Feb 2006 11:09:31.0737 (UTC) FILETIME=[1FC95C90:01C6360E] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-06-00-02 (www.mailcontrol.com) on 10.67.0.115 Geoff Wing wrote: > Peter Stephenson typed: > :> Currently, for "b)", I get the effect of "which zsh-newuser-install" to th > e > :> screen twice. > : I wasn't able to reproduce that. > > Ah, OK, I've broken it down to a badly written/parsed expression in my > /etc/zshrc which effectively does > > autoload -U > autoload -U compinit > compinit > > with no function name in the first command. Don't know what should happen > there. Shouldn't it barf on it? No, "autoload -U" is valid; autoload is historically derived from functions -u which is derived from typeset -f... it's a little more complicated nowadays since the options are different, but it's still the case that running any of those commands with no non-option arguments displays a list of whatever entity it is that has the specified flags set, in this case autoloaded functions. I'm a bit surprised to see it shows functions that have already been autoloaded, however... it seems the presence of the -U flag makes it (also) show functions that were previously autoloaded with that flag set. Conceivably this is useful. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php