From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20074 invoked from network); 14 Mar 2003 10:30:23 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Mar 2003 10:30:23 -0000 Received: (qmail 5911 invoked by alias); 14 Mar 2003 10:30:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18352 Received: (qmail 5902 invoked from network); 14 Mar 2003 10:30:17 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 14 Mar 2003 10:30:17 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 14 Mar 2003 10:30:16 -0000 Received: from exchange01.csr.com (unverified) by (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Fri, 14 Mar 2003 10:37:55 +0000 Received: from csr.com (tinky-winky.csr.com [192.168.144.127]) by exchange01.csr.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id G6NS898N; Fri, 14 Mar 2003 10:29:57 -0000 To: zsh-workers@sunsite.dk Subject: Re: Completion and command versions In-reply-to: "Doug Kearns"'s message of "Fri, 14 Mar 2003 11:14:50 +1100." <20030314001450.GE954@localhost.localdomain> Date: Fri, 14 Mar 2003 10:30:14 +0000 Message-ID: <28975.1047637814@csr.com> From: Peter Stephenson Doug Kearns wrote: > Is there a policy regarding the command version that completion > functions should support? What about commands where there are > significant changes between versions? The standard way is using the _pick_variant function. If it's too dangerous to run the command to find out what it does, you probably need a style. `variant' is already use by _pick_variant, unfortunately --- it's not a very good name, since it doesn't give the variant, it gives the programme to run to pick the variant. Of course it could be set to a function that simply returns the type, but that method doesn't have a sensible default. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************