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

Completion problems.



I found a problem about the conditional expression for completion.

is27e1u11% autoload -U compinit; compinit -D
is27e1u11% _tst () { if [[ -prefix */ ]]; then compadd ../t; else compadd ../f; fi }
is27e1u11% compdef _tst tst
is27e1u11% tst ../<TAB>

Then, I get:

is27e1u11% tst ../f 

I think it should be "../t ".
-- 
Tanaka Akira



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