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

Re: REMATCH_PCRE with zsh built without pcre support



On Apr 1,  3:09pm, Eric Cook wrote:
}
} Should setting this option be allowed when zsh was built without pcre
} support?

That might make sense, but it would mean that the option-setting code
has to know about modules and add a special case for this one.  Presently
the only existing module-specific hack that deep in the core shell is the
bit in conditionals that implements the =~ operator.

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.

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.



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