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

Re: [PATCH] isearch: do not use PAT_STATIC since we call zle hooks



On Sun, Jan 8, 2017 at 5:35 PM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Is there a way to probe for this bug at runtime?  I.e., a way for
> a script to determine whether the zsh binary that interprets it has or
> hasn't this bug?

You'd need something similar to the zpty-based Test/ scripts for
completion and vicmd, because you need to invoke interactive search
with a hook function.

For this specific bug, that is.  One could probably devise by
examination of all uses of PAT_STATIC in the code base a test for the
more general case with trap handlers that I mentioned elsewhere in the
thread.



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