From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19581 invoked from network); 5 Apr 2000 09:33:02 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Apr 2000 09:33:02 -0000 Received: (qmail 27504 invoked by alias); 5 Apr 2000 09:32:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10504 Received: (qmail 27484 invoked from network); 5 Apr 2000 09:32:45 -0000 To: Sven Wischnowsky Cc: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Re: _arguments questions References: <200004050811.KAA01592@beta.informatik.hu-berlin.de> X-Attribution: adl From: Alexandre Duret-Lutz Date: 05 Apr 2000 11:28:48 +0200 In-Reply-To: Sven Wischnowsky's message of "Wed, 5 Apr 2000 10:11:57 +0200 (MET DST)" Message-ID: User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> "Sven" == Sven Wischnowsky writes: Sven> Alexandre Duret-Lutz wrote: [...] >> _arguments -a -b '-c:*::::blah: _arguments -c -d -e' >> >> Horrible ! Sven> Because of that (;-) and because it isn't quite the same (but I Sven> confess, I had the same idea...). Especially, adding this dummy Sven> element might be useful to combine with both `::' and `:::'. An helper function ? _with_dummy_arg0 () { # I'm not good at finding names... words=(dummy $words) (( ++CURRENT )) $@ } _arguments -a -b '-c:*::blah: _with_dummy_arg0 _arguments -c -d -e' Quite ugly, but looks understandable. But taht way we can't get the 'parent' option (-c) for the dummy as you suggested. [...] -- Alexandre Duret-Lutz