Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _alternative -O undocumented?
- X-seq: zsh-workers 29287
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: _alternative -O undocumented?
- Date: Sat, 14 May 2011 19:02:29 +0100
- In-reply-to: <BANLkTi=OHW9PFwphRU8Ebjth4GZd0HcGMw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BANLkTi=OHW9PFwphRU8Ebjth4GZd0HcGMw@mail.gmail.com>
On Sat, 14 May 2011 03:25:15 +0200
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> It seems _alternative allows passing arbitrary options down to compadd
> by doing foo=( '-V' 'foo' ); _alternative -O foo, but the
> documentation doesn't mention it. _chmod, _which, _zstyle, _aliases
> and _command_names make use of this feature. _values has this feature
> too and documents it,
>
> If the first argument is the option `-O name', it will be used in the
> same way as by the _arguments function. In other words, the elements
> of the name array will be passed to compadd when executing an action.
>
> Can I copy this paragraph into the _alternative section? Possibly
> modifying for it not having to be the first option.
Sounds sensible.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author