From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17298 invoked from network); 20 Feb 2006 12:54:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Feb 2006 12:54:24 -0000 Received: (qmail 61752 invoked from network); 20 Feb 2006 12:54:16 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Feb 2006 12:54:16 -0000 Received: (qmail 29784 invoked by alias); 20 Feb 2006 12:54:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9944 Received: (qmail 29774 invoked from network); 20 Feb 2006 12:54:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Feb 2006 12:54:07 -0000 Received: (qmail 60661 invoked from network); 20 Feb 2006 12:54:07 -0000 Received: from rouge.crans.org (138.231.136.3) by a.mx.sunsite.dk with SMTP; 20 Feb 2006 12:54:06 -0000 Received: from localhost (rouge.adm.crans.org [138.231.144.3]) by rouge.crans.org (Postfix) with ESMTP id 4E904BB94 for ; Mon, 20 Feb 2006 13:54:06 +0100 (CET) Received: from rouge.crans.org ([138.231.144.3]) by localhost (rouge [138.231.144.3]) (amavisd-new, port 10024) with LMTP id 14899-01-54 for ; Mon, 20 Feb 2006 13:54:06 +0100 (CET) Received: from [138.231.143.213] (phenix.crans.org [138.231.143.213]) by rouge.crans.org (Postfix) with ESMTP id D755CBB8E for ; Mon, 20 Feb 2006 13:54:05 +0100 (CET) Message-ID: <43F9BBF7.2070009@crans.org> Date: Mon, 20 Feb 2006 13:54:15 +0100 From: =?ISO-8859-15?Q?Etienne_Chov=E9?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051017 Thunderbird/1.0.7 Mnenhy/0.7.1 X-Accept-Language: fr-fr MIME-Version: 1.0 To: zsh-users@sunsite.dk Subject: Completion X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at crans.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm trying to make a completion for a script, the command look like : whos nom=nom1&prenom=prenom2 I wrote a completion funtion like : #compdef whos _recherche () { if compset -S '' -P '(|*&)'; then compadd -S '=' - nom prenom elif compset -P '*A'; then compadd - nom1 nom2 elif compset -P '*prenom='; then compadd - prenom1 prenom2 fi } _arguments \ '*:expression:_recherche' But it won't complete prenom because it match with the first condition. Is th'ere a easy colution to have completion ? Thanks. - -- Etienne -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD+bv1vsnSxJjnYzIRAruxAJ9O4jfI/P17yeDEY2HNHFq8JrvLdACeKfbl rXNChIVCM9RlyPbWdudv6AA= =ow3l -----END PGP SIGNATURE-----