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

Re: [PATCH] env completion: add missing explanation of --unset option, fixes alignment of completed arguments



On Thu, 12 Nov 2009, Ingmar Vanhassel wrote:

> Excerpts from Benjamin R. Haskell's message of Thu Nov 12 21:52:50 +0100 2009:
> > On Thu, 12 Nov 2009, Ingmar Vanhassel wrote:
> >
> > [...]
> > 3. the fix to complete arguments to the command passed to 'env'
> 
> This doesn't fix 'env FOO=bar quux <TAB>' here.

I agree. :-) Spoke too soon.  (I'd only tested with 'env -u BLAH quux <TAB>')

I thought the '(-):command: _command_names -e' line was more magical than 
it is.  Turns out the '*::arguments: _normal' is the 'quux <TAB>'-enabling 
portion, modulo the intervening FOO=bar args.

This way lie dragons.  Going back to ye cave of Zsh-completion 
begginneres.

-- Ben



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