Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: sudo completion problem
- X-seq: zsh-workers 11259
- From: Tanaka Akira <akr@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: sudo completion problem
- Date: 09 May 2000 00:25:03 +0900
- In-reply-to: <200005080900.LAA13146@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> (Sven Wischnowsky's message of "Mon, 8 May 2000 11:00:04 +0200 (MET DST)")
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200005080900.LAA13146@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
In article <200005080900.LAA13146@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:
> But before I start writing it: should the default for _arguments be
> changed? And would someone be willing to check all uses of _arguments
> and add the option to the calls that need them? Oh, and does anyone
> have an idea how to test for GNU-getopts. Reliably?
0. If a completion function knows the precious command behavior, use
the knowledge.
1. If `-s' is not specified, it's not getopt.
2. If the environment variable POSIXLY_CORRECT is set, assume
traditional getopt.
3. If on GNU system such as Linux, assume GNU getopt.
4. If it is not cases above, assume traditional getopt.
I think this guess is not so bad.
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author