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

other _arguments problems



I found two other _arguments problems when I wrote _psutils.

Z(2):akr@is27e1u11% Src/zsh -f
is27e1u11% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% zstyle ':completion*:messages' format '%d'
is27e1u11% _tst () { _arguments '-x:arg:' }
is27e1u11% tst -x<TAB>
no arguments

It should insert ` '.

is27e1u11% _tst () { _arguments '-x' ':arg:' }
is27e1u11% tst -<TAB>
arg

It should insert `x '.

zsh-3.1.6-pws-6 behaves as I expected.
-- 
Tanaka Akira



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