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

Re: completion with prefix which contains meta character.



In article <200001061503.QAA19187@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
  Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> Yup. Since $PREFIX contains the quoted form, compset should use it, too.

Now, `echo =<TAB>' completes nothing.

Z:akr@is27e1u11% Src/zsh -f
is27e1u11% bindkey -e; autoload -U compinit; compinit -D
is27e1u11% echo =<TAB>

This completes nothing.

set -x on latest zsh says:
is27e1u11% echo =<TAB>
...
+_main_complete:41> compset -P 1 \=
+_main_complete:42> compstate[context]=equal 
...

set -x on 3.1.6-dev-14 says:
is27e1u11% echo =<TAB>
...
+_main_complete:41> compset -P 1 \=
+_main_complete:43> [[ = != */* && = == ~ ]]
...

Replacing the compset pattern \= with = works well, but they should
have same bahaviour, I think.
-- 
Tanaka Akira



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