Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _netcat
- X-seq: zsh-workers 16836
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: _netcat
- Date: Fri, 15 Mar 2002 09:39:49 +0100
- In-reply-to: <20020314122203.GA28294@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1020310222552.ZM26165@xxxxxxxxxxxxxxxxxxxxxxx> <20020311112606.GA20670@xxxxxxxxxx> <20020312173831.GA30789@xxxxxxxxxx> <15503.3721.373253.225908@xxxxxxxxxxxxxxxxxx> <20020314122203.GA28294@xxxxxxxxxx>
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@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author