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

Re: zsh-3.1.5-pws-19 unquotes prefix.



In article <199905260643.IAA07549@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
  Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> That was one problem. The other was that with old completion and
> `compctl -P '\*' -k '(a b)' foo', completion after `ls \*<TAB>' didn't 
> work at all.
> 
> Again, completion and quoting, sigh.

Thanks. But I found another problem with \*.

is27e1u11% fpath=($PWD/Completion/*(/))
is27e1u11% . Completion/Core/compinit
is27e1u11% _tst () { compadd -P '\*' a }              
is27e1u11% _comps[tst]=_tst
is27e1u11% tst \*<TAB>

Then, I get no completion.

If _tst is defined as following, I get "tst \*a " correctly.
_tst () { compgen -P '\*' -k '(a)' }
-- 
Tanaka Akira



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