Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#434879: zsh: Incorrect completion after "dvips -Ppdf "



On 2007-07-27 11:16:02 -0400, Clint Adams wrote:
> On Fri, Jul 27, 2007 at 03:30:50PM +0200, Vincent Lefevre wrote:
> > If I type "dvips -P pdf " then [Tab], the completion works as expected.
> > But if I type "dvips -Ppdf " then [Tab], zsh wants to complete on the
> > printer name.
> 
> Is it impossible to string option letters together with dvips?

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:

vin% dvips -w
dvips: ! Invalid option `-w'. Try --help for more information.
vin% dvips -j
This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)
Missing DVI file argument (or -f).
Try --help for more information.
vin% dvips -jw
This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)
Missing DVI file argument (or -f).
Try --help for more information.
vin% dvips -wj
dvips: ! Invalid option `-wj'. Try --help for more information.

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.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Messages sorted by: Reverse Date, Date, Thread, Author