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

Re: PATCH: yet another match-spec-cursor bug



Felix Rosencrantz wrote:

> Sven Wischnowsky wrote:
> >I've tried quite a bit now, but can't reproduce it. And you didn't
> >give us much information, did you? ;-) For example, I guess you have a 
> >`r:[^A-Z0-9]||[A-Z0-9]=*', right?
> >
> >So, can you reproduce it with `zsh -f'?
> 
> Sorry not to provide more details.  I was thinking the problem might be
> closely related to the original patch.

It may be... although I'm not sure.

> I am able to get the same intermittent problem with "zsh -f".
> myprompt@ zsh -f
> host% mkdir j ; touch j/build.out{,1,2} ; cd j
> host% bindkey -e; autoload -U compinit; compinit -D
> host% zstyle ':completion:*:complete:*' matcher-list 'm:{a-zA-Z}={A-Za-z} 
> r:|[.,_-]=* r:[^A-Z0-9]||[A-Z0-9]=* r:[A-Z0-9]||[^A-Z0-9]=* r:[^0-9]||[0-9]=*'
> host% more bui<TAB>

Both `r:[^A-Z0-9]||[A-Z0-9]=*' and `r:[^0-9]||[0-9]=*' doesn't seem to 
make much sense, does it?

> If I try completing "bui", I rarely I get only "build" or  more often I get the
> following sequence after hitting tab:
>    bui --> build.out[] --> build[.]out --> build.out[] --> build.out1[]
>          --> build.out2[]
> 
> Most times I get the correct behavior.  Though within several attempts I get
> the
> described incorrect behavior.  

That's bad news: not always repeatable. I've tried it for quite some
time now and still can't reproduce it. I'll continue to try...

The fact that you don't always get it makes me think that it may be a
problem with an not-initialised variable or memory block. Do you have
configured with mem-debug?

What really irritates me is that it doesn't go into menu-completion on 
the second TAB. Hm.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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