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

Re: REMATCH_PCRE with zsh built without pcre support



On Sun, Apr 2, 2017 at 6:12 PM, Phil Pennock
<zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> On 2017-04-01 at 14:53 -0700, Bart Schaefer wrote:
>> I'd personally be more inclined to do away with REMATCH_PCRE and that
>> =~ special-case entirely, and require explicit use of the -pcre-match
>> operator (or a shorter equivalent) when you want those semantics.
>
> That's a shame.

To clarify, I'm not advocating any such demotion of PCRE.  However,
*IF* the presence of the option when the module is not available is
really a serious problem, then I think the right thing is to remove
the option, rather than to expand the special case.

>> It's already been pointed out in another thread that =~ doesn't work at
>> all if the shell is built with the default modules and without dynamic
>> linking support.
>
> I'll have to hunt down that thread and see what I can do about that.

It's the recent "zregexparse" thread where this came up.  I'm not sure
there is anything to be done about it; the zsh/regex module would have
to become part of the default static build, which might have licensing
consequences.



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