From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15223 invoked from network); 6 May 2000 07:40:03 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 6 May 2000 07:40:03 -0000 Received: (qmail 9972 invoked by alias); 6 May 2000 07:39:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11221 Received: (qmail 9925 invoked from network); 6 May 2000 07:39:51 -0000 To: Subject: Re: PATCH: Re: sudo completion problem References: <200005031442.QAA06892@beta.informatik.hu-berlin.de> <000501bfb728$30dd2f40$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 06 May 2000 16:40:52 +0900 In-Reply-To: <000501bfb728$30dd2f40$21c9ca95@mow.siemens.ru> (Andrej Borsenkow's message of "Sat, 6 May 2000 10:56:23 +0400") 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 <000501bfb728$30dd2f40$21c9ca95@mow.siemens.ru>, "Andrej Borsenkow" writes: > - can somebody comment on long options case - is it expected behaviour? > Note, that I mean in this case "GNU long options". In this case, again, > _arguments should differentiate bewteen long and short case, again with > option. There are enough commands out there that use "long" options but > not GNU ones. It's not differences between long and short. It's caused by the difference between traditional getopt and GNU getopt. By default, GNU getopt permutes argv and finds options on anywhere (until `--'). If we can easily find out whether a command is linked with GNU getopt or not, we can (and should) complete correctly. But I think the current behavior is not bad because it completes all correct (and some non-correct) candidates. If _arguments behavior is changed as you said, it completes only subset of correct candidates. -- Tanaka Akira