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

Re: minor niggle with svn completion of sub-commands



Here's a simple test showing that the '*::...' type argument
descriptions are not handled correctly by _arguments:

compdef _foo foo

_foo () { _arguments '1: :_foo_arg1' '*: :_foo_rest' }
% foo a<tab> b  => correctly prints "command not found: _foo_arg1"

_foo () { _arguments '1: :_foo_arg1' '*:: :_foo_rest' }
% foo a<tab> b  => incorrectly prints "command not found: _foo_rest"

cheers,
Greg



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