From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Cc: 909114@bugs.debian.org, Daniel Shahaf <danielsh@apache.org>
Subject: [PATCH] Have V07pcre fail if PCRE was enabled by configure (config.modules) but failed to load for any reason.
Date: Tue, 18 Sep 2018 23:15:01 +0000 [thread overview]
Message-ID: <20180918231501.1581-1-danielsh@tarpaulin.shahaf.local2> (raw)
From: Daniel Shahaf <danielsh@apache.org>
---
Test/V07pcre.ztst | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
index 9feeb47fb..ab67f3d80 100644
--- a/Test/V07pcre.ztst
+++ b/Test/V07pcre.ztst
@@ -1,11 +1,10 @@
%prep
- if ! zmodload -F zsh/pcre C:pcre-match 2>/dev/null
+ if grep '^name=zsh/pcre .* link=no ' $ZTST_testdir/../config.modules >/dev/null
then
- ZTST_unimplemented="the zsh/pcre module is not available"
+ ZTST_unimplemented="the zsh/pcre module was disabled by configure (see config.modules)"
return 0
fi
-# Load the rest of the builtins
zmodload zsh/pcre
setopt rematch_pcre
# Find a UTF-8 locale.
reply other threads:[~2018-09-18 23:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180918231501.1581-1-danielsh@tarpaulin.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=909114@bugs.debian.org \
--cc=danielsh@apache.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).