Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: complete (real C) tags
- X-seq: zsh-workers 11529
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: complete (real C) tags
- Date: Tue, 23 May 2000 13:56:46 +0100
- In-reply-to: "Your message of Tue, 23 May 2000 14:33:37 +0200." <200005231233.OAA23987@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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 <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author