From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2787 invoked from network); 8 May 2000 15:25:53 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 May 2000 15:25:53 -0000 Received: (qmail 14551 invoked by alias); 8 May 2000 15:25:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11259 Received: (qmail 13210 invoked from network); 8 May 2000 15:23:50 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Re: sudo completion problem References: <200005080900.LAA13146@beta.informatik.hu-berlin.de> MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 09 May 2000 00:25:03 +0900 In-Reply-To: <200005080900.LAA13146@beta.informatik.hu-berlin.de> (Sven Wischnowsky's message of "Mon, 8 May 2000 11:00:04 +0200 (MET DST)") Message-ID: User-Agent: T-gnus/6.14.1 (based on Gnus v5.8.3) (revision 16) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/20.6 (i686-pc-linux-gnu) MULE/4.0 (HANANOEN) In article <200005080900.LAA13146@beta.informatik.hu-berlin.de>, Sven Wischnowsky 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