From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17942 invoked from network); 15 Feb 1999 13:05:45 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 Feb 1999 13:05:45 -0000 Received: (qmail 13368 invoked by alias); 15 Feb 1999 13:05:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5389 Received: (qmail 13360 invoked from network); 15 Feb 1999 13:05:24 -0000 From: "Bart Schaefer" Message-Id: <990215050357.ZM32368@candle.brasslantern.com> Date: Mon, 15 Feb 1999 05:03:57 -0800 In-Reply-To: <199902151059.LAA24631@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "New style completion stuff" (Feb 15, 11:59am) References: <199902151059.LAA24631@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@sunsite.auc.dk Subject: Re: New style completion stuff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This may be the last message from me for about a week ... and I don't have a lot of time, so just one comment: On Feb 15, 11:59am, Sven Wischnowsky wrote: } Subject: New style completion stuff } } - don't use the positional parameters, instead store the words in } an array, say `words', and store *all* words in that array, not } only the arguments } - we could then avoid the value `argument' for the parameter } CONTEXT, the shell code would only have to check if CURRENT is 1 } or not to find out if we are completing a command name or an } argument I didn't want to do this originally, in part because of ksharrays. You have to remember to unsetopt that, or CURRENT won't be the correct index into the words. If you use $argv, ksharrays doesn't matter. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com