* -pcre-match doesn't work since version 5.4.1
@ 2017-08-10 22:29 nimaje+zml
2017-08-11 1:07 ` Phil Pennock
0 siblings, 1 reply; 3+ messages in thread
From: nimaje+zml @ 2017-08-10 22:29 UTC (permalink / raw)
To: zsh-users
Hello,
after upgrading to version 5.4.1 I noticed that using -pcre-match
doesn't work
% zmodload zsh/pcre; [[ 'dxd' -pcre-match ^d+$ ]]
zsh: unknown condition: -pcre-match
Regards
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: -pcre-match doesn't work since version 5.4.1
2017-08-10 22:29 -pcre-match doesn't work since version 5.4.1 nimaje+zml
@ 2017-08-11 1:07 ` Phil Pennock
2017-08-11 2:11 ` Phil Pennock
0 siblings, 1 reply; 3+ messages in thread
From: Phil Pennock @ 2017-08-11 1:07 UTC (permalink / raw)
To: nimaje+zml; +Cc: zsh-users
On 2017-08-11 at 00:29 +0200, nimaje+zml@bureaucracy.de wrote:
> after upgrading to version 5.4.1 I noticed that using -pcre-match doesn't
> work
>
> % zmodload zsh/pcre; [[ 'dxd' -pcre-match ^d+$ ]]
>
> zsh: unknown condition: -pcre-match
I see this too; none of the loadable infix operators seem to be working,
so it's not specific to the PCRE module. -regex-match doesn't work
either.
As a workaround, `setopt re_match_pcre` and then using =~ as the
operator does still work. (This is why I didn't immediately see the
breakage myself).
-Phil, occasional PCRE module tinkerer, who for once appears to not be
the cause of PCRE zsh problems. A pleasant change for me.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: -pcre-match doesn't work since version 5.4.1
2017-08-11 1:07 ` Phil Pennock
@ 2017-08-11 2:11 ` Phil Pennock
0 siblings, 0 replies; 3+ messages in thread
From: Phil Pennock @ 2017-08-11 2:11 UTC (permalink / raw)
To: nimaje+zml; +Cc: zsh-users
On 2017-08-10 at 21:07 -0400, Phil Pennock wrote:
> On 2017-08-11 at 00:29 +0200, nimaje+zml@bureaucracy.de wrote:
> > after upgrading to version 5.4.1 I noticed that using -pcre-match doesn't
> > work
> I see this too; none of the loadable infix operators seem to be working,
> so it's not specific to the PCRE module. -regex-match doesn't work
> either.
I took this to -workers and a patch has been posted. A change in
tokenization logic accidentally broke lookup of conditionals where
there's a dash inside the conditional name.
No idea whether my patch or something else will be applied, but know
that what we have includes a regression test so that this one won't slip
through again.
> As a workaround, `setopt re_match_pcre` and then using =~ as the
> operator does still work. (This is why I didn't immediately see the
> breakage myself).
That workaround applies still. And now we know why it works. :)
-Phil
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-11 2:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-10 22:29 -pcre-match doesn't work since version 5.4.1 nimaje+zml
2017-08-11 1:07 ` Phil Pennock
2017-08-11 2:11 ` Phil Pennock
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).