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

Re: odd completion behavior



> No and I can't reproduce it. Can you get this error with `zsh -f' or
> could you tell us more about your environment?

Src/zsh is compiled with
--enable-zsh-debug --enable-zsh-mem-debug --enable-zsh-mem-warning \
--enable-zsh-secure-free --enable-zsh-hash-debug

zsh 381 % Src/zsh -f
ghanima% autoload -U compinit
ghanima% compinit
ghanima% compconf completer=_complete:_correct:_approximate
ghanima% setopt nobeep       
ghanima% a2ps --pretty-print=
_main_complete: bad pattern: (^L"^HPs^T@^P [92]
ghanima% a2ps --pretty-print=
_main_complete: bad pattern: h<-^HPs^T@^P [92]
ghanima% a2ps --pretty-print=
_main_complete: bad pattern: (\M-^]/^HPs^T@^P [92]
ghanima% a2ps --pretty-print=
_main_complete: bad pattern: (;x^HPs^T@^P [92]
ghanima% a2ps --pretty-print=
_main_complete: bad set of key/value pairs for associative array [92]
ghanima% a2ps --pretty-print=
_main_complete: bad pattern: Hw(^HPs^T@^P [92]
ghanima% a2ps --pretty-print=
ghanima% ldd Src/zsh
        libdl.so.2 => /lib/libdl.so.2 (0x40005000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40008000)
        libncurses.so.4 => /lib/libncurses.so.4 (0x4001e000)
        libc.so.6 => /lib/libc.so.6 (0x4005f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)

Again, I typed a2ps --pre and then began hitting TAB at various
frequencies.

> The error message irritates me because line 92 in `_main_complete' is
> just `_lastcomp=( "${(@kv)compstate}" )' and the error message is only 
> emitted if the number of elements in the `(...)' is odd (err, an odd
> number of...). And `${(kv)foo}' should never give an odd number of
> strings for an associative array, I think.

> And what's that `bad pattern' message, there is no pattern. Hm.

What shall I try next?



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