From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28923 invoked from network); 27 Jul 2007 21:25:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Jul 2007 21:25:55 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 89834 invoked from network); 27 Jul 2007 21:25:50 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Jul 2007 21:25:50 -0000 Received: (qmail 12857 invoked by alias); 27 Jul 2007 21:25:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23712 Received: (qmail 12848 invoked from network); 27 Jul 2007 21:25:47 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Jul 2007 21:25:47 -0000 Received: (qmail 89527 invoked from network); 27 Jul 2007 21:25:47 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 27 Jul 2007 21:25:44 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 488BC5C73A; Fri, 27 Jul 2007 17:25:41 -0400 (EDT) Date: Fri, 27 Jul 2007 17:25:41 -0400 From: Clint Adams To: 434879@bugs.debian.org, zsh-workers@sunsite.dk Subject: Re: Bug#434879: zsh: Incorrect completion after "dvips -Ppdf " Message-ID: <20070727212541.GA10242@scowler.net> Mail-Followup-To: 434879@bugs.debian.org, zsh-workers@sunsite.dk References: <20070727133050.GA7151@vin.lip.ens-lyon.fr> <20070727151602.GA1059@scowler.net> <20070727204929.GL6654@prunille.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070727204929.GL6654@prunille.vinc17.org> User-Agent: Mutt/1.5.16 (2007-06-11) On Fri, Jul 27, 2007 at 10:49:29PM +0200, Vincent Lefevre wrote: > I don't understand your question. If you mean grouping options in a > single argument, this doesn't seem to be possible. But dvips behaves > strangely: Try changing "_arguments -s" to "arguments -s -w". That might do the right thing, though I'm still not clear on how dvips parses the command line. > I'd say that when an option doesn't take data, the trailing characters > of the argument are simply ignored. > > BTW, there are other problems with the completion code. For instance, > > dvips -j [Tab] > > gives: > > dvips -j - > > then completes options. "dvips -j [Tab]" should complete dvi files. That should be an easy fix: Index: Completion/Unix/Command/_dvi =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_dvi,v retrieving revision 1.2 diff -u -r1.2 _dvi --- Completion/Unix/Command/_dvi 21 Jan 2004 13:53:29 -0000 1.2 +++ Completion/Unix/Command/_dvi 27 Jul 2007 21:23:19 -0000 @@ -26,6 +26,7 @@ '-F[append control-D]' \ '-h[specify additional header file]:postscript header file:_files -g "*.(#i)(ps|eps)(-.)"' \ '-i[one file per section]' \ + '-j[download fonts partially]' \ '-k[print crop marks]' \ '-K[include postscript comments]' \ '(-pp)-l[specify last page to print]:number of last page' \