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

Re: Redirection completion



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.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************



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