From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16202 invoked from network); 23 May 2000 12:57:34 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 May 2000 12:57:34 -0000 Received: (qmail 12557 invoked by alias); 23 May 2000 12:57:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11529 Received: (qmail 12550 invoked from network); 23 May 2000 12:57:24 -0000 Date: Tue, 23 May 2000 13:56:46 +0100 From: Peter Stephenson Subject: Re: complete (real C) tags In-reply-to: "Your message of Tue, 23 May 2000 14:33:37 +0200." <200005231233.OAA23987@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Message-id: <0FV000K5NJYMD7@la-la.cambridgesiliconradio.com> Content-transfer-encoding: 7BIT Sven wrote: > Actually, I've been tempted from the beginning to allow compadd to > get the matches not only from its positional parameters, but also > from arrays whose names are given as arguments. That would allow us > to stuff the matches into some array and then call: > > foo=(...) > _wanted ... compadd -a foo > > or some such. This sounds a simple and effective solution. I presume it could be done with minimal changes --- just modify compadd argument handling and then pass down the argument `-a carefully_chosen_parameter_name' (so as no to clash with any parameters in the middle). -- Peter Stephenson Cambridge Silicon Radio, Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070