From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22814 invoked from network); 15 Mar 2002 08:40:33 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Mar 2002 08:40:33 -0000 Received: (qmail 7047 invoked by alias); 15 Mar 2002 08:40:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16836 Received: (qmail 7036 invoked from network); 15 Mar 2002 08:40:27 -0000 From: Sven Wischnowsky MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15505.45909.894644.288795@wischnow.berkom.de> Date: Fri, 15 Mar 2002 09:39:49 +0100 To: zsh-workers@sunsite.dk Subject: Re: PATCH: _netcat In-Reply-To: <20020314122203.GA28294@logica.com> References: <1020310222552.ZM26165@candle.brasslantern.com> <20020311112606.GA20670@logica.com> <20020312173831.GA30789@logica.com> <15503.3721.373253.225908@wischnow.berkom.de> <20020314122203.GA28294@logica.com> X-Mailer: VM 6.95 under 21.5 (patch 3) "asparagus" XEmacs Lucid Oliver Kiddle wrote: > ... > > How about the following. Usage is, for example: > _pick_variant netcat=connect nedit -h > or _pick_variant -c diff gnu=GNU unix --version The only thing I would suggest is that it (optionally?) gets a parameter name as argument into which the command variant is stored so that the calling function doesn't have to do the lookup itself (yes, only a little easier, but...). Bye Sven -- Sven Wischnowsky wischnow@berkom.de