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

completion with prefix which contains meta character.



I tried to complete with prefix `*' but zsh doesn't work well.

Z(2):akr@is27e1u11% Src/zsh -f
is27e1u11% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% _tst () { compadd -P '*' xxx }
is27e1u11% tst \*<TAB>

This doesn't complete anything.

is27e1u11% _tst () { compadd -P '\*' xxx } 
is27e1u11% tst \*<TAB>

This doesn't complete anything too.

is27e1u11% _tst () { compadd -P '\\*' xxx }
is27e1u11% tst \*<TAB>
->
is27e1u11% tst \\*xxx 

This re-quotes `\'.  Anyway, current behaviour is unusable.
-- 
Tanaka Akira



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