From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 548 invoked from network); 13 Apr 2004 17:51:22 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Apr 2004 17:51:22 -0000 Received: (qmail 23017 invoked by alias); 13 Apr 2004 17:51:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19772 Received: (qmail 23004 invoked from network); 13 Apr 2004 17:51:16 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Apr 2004 17:51:16 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Apr 2004 17:51:16 -0000 Received: (qmail 24179 invoked from network); 13 Apr 2004 17:51:15 -0000 Received: from wbar3.sjo1-4-11-009-147.sjo1.dsl-verizon.net (HELO candle.brasslantern.com) (4.11.9.147) by a.mx.sunsite.dk with SMTP; 13 Apr 2004 17:51:13 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i3DHpBu21012 for zsh-workers@sunsite.dk; Tue, 13 Apr 2004 10:51:11 -0700 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040413175111.ZM21011@candle.brasslantern.com> Date: Tue, 13 Apr 2004 17:51:11 +0000 In-Reply-To: <18035.1081870188@trentino.logica.co.uk> Comments: In reply to Oliver Kiddle "PATCH: Re: Compsys and KSH_AUTOLOAD" (Apr 13, 5:29pm) References: <1040410174430.ZM10891@candle.brasslantern.com> <1170.1081778412@athlon> <040412085942.ZM19035@candle.brasslantern.com> <3571.1081806187@athlon> <1040413053826.ZM20012@candle.brasslantern.com> <18035.1081870188@trentino.logica.co.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: PATCH: Re: Compsys and KSH_AUTOLOAD MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: **** X-Spam-Status: No, hits=4.7 required=6.0 tests=RCVD_IN_DYNABLOCK, RCVD_IN_NJABL,RCVD_IN_NJABL_DIALUP,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 4.7 On Apr 13, 5:29pm, Oliver Kiddle wrote: } } It's not in the patch but I've tried replacing `autoload -U' with } `autoload -Uz' in compinit/compdump and new completion seems to then } work with kshautoload set. Should I make that change? I think so. } In addition to documentation changes, I also need to make the new } options work for functions and typeset -f. Shouldn't running just } `functions -U' restrict the listed options to those with PM_UNALIASED } set? That'd be nice. } At the moment, it isn't entirely consistent with typeset. What } should `functions +U' do? List only the names of the functions with PM_UNALIASED set, whereas -U lists the entire definition (such as it is). } > Here's a possibly-silly idea: Those flags could be made to apply to } > arrays as well as functions } } It's not a bad idea, if it isn't hard to implement. Can you think of } cases where you would want a zero-based array? Well, if you have ksh_autoload set, then chances are you're loading some ksh functions, which means you probably also have ksh_arrays set. So the real question is whether there are cases where one would want one-based arrays; the opposite is just for logical symmetry.