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

Re: Redirection completion



Peter Stephenson wrote:

> Oliver Kiddle wrote:
> > If Peter wants to commit his change first, I'll do the merge and
> > commit my change later. It is only the first line that needs any
> > merging anyway.
> > 
> > I'd be tempted to add -redirect-,<,bzip2=bzip2 too so that completion
> > after bzip2 -c < and bzip2 -cd < also work. Ideally, we should stop it
> > from completing options but it would still need _arguments with ! specs
> > if the checks for -d and -z options are still to work.
> 
> OK, I've done that, except I haven't done anything about option
> handling.  It would be better to have special services for the
> redirections.  I haven't worked out either whether _arguments is aware
> of the options when it's completing redirections.

Err... just to make sure: everyone's aware that $service is set, yes?
I've put an example in _gcc.

Bye
  Sven

-- 
Sven Wischnowsky                          wischnow@xxxxxxxxx



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