Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: REMATCH_PCRE with zsh built without pcre support
- X-seq: zsh-users 22649
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: REMATCH_PCRE with zsh built without pcre support
- Date: Sat, 1 Apr 2017 14:53:48 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=UdJT+GybQBYl1ZekmSHJkJkXqBTUw0HafMJ6yO1AKWU=; b=qOOB5pa5Yfer9jMyJXx1x5wxm0bFjJJ0ihq58hlWS206vBUX9dh7P3Uu3dn4LvXe4I cZSyvwDgCVWA8gtvi3ehzw0rB6h1X9uIU2uDObMwG+7iQYt1VvNKAvBXFPRT1/b1ZcV+ eHJWPo/qmNYyIsV2wSBEkH5F6yoG2+ur8h8X18TXUKzsg5APRidcYu9bX3m1uQv3CUQL hdj6uu7MZ6pALOQ6CFv02pAF9xzY4Z/5KqmK3cswvwTEMqHVvTeIXYLoHPDMv+sIMcNv hXR8al7wQxcpr/NlPWi8pup0ulmaSp6eabFz8LnGd/A8zhU6i3C52TpksSP2VSSbN/rK Ioww==
- In-reply-to: <27c2026c-f760-32b0-e0d5-8c6909346979@gmx.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <27c2026c-f760-32b0-e0d5-8c6909346979@gmx.com>
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