Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Have V07pcre fail if PCRE was enabled by configure (config.modules) but failed to load for any reason.
- X-seq: zsh-workers 43493
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- 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
- Cc: 909114@xxxxxxxxxxxxxxx, Daniel Shahaf <danielsh@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=2hG+dnpY6su1BBo0D DIONRipFqd/s7jeQNYv+jqZYYM=; b=Si2MT5fCgFa35CoeUXL7whurJDupl2cfV mPcKEbaP4QHVuj21lzt6pEoHf5EuPRXa0bUkEIX53Ots4/McFRsHFZn/vwRMOZp1 1KGL1gNgiAXu8rOHiVljlw3amRYC2650+D9brf+JEB43Y4DKKFHGZg+Nyz64rnQp RWn2u7+FUTY3nQnBggtpeu1id3c15x0A4DtdcN+bsWal89ne3VUlECKrpEmrl11u 2xSoo6mADzhbv9T7B265EPfkTRrp6mdvHNC5TM+5aSXZz5TWx8U0UF3O6HIY8zUP /c/3itWe7nRPYhFvtu//8FyoAIB8LpGm0RJC7sPH2b920RUBV+Fxw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=2hG+dnpY6su1BBo0D DIONRipFqd/s7jeQNYv+jqZYYM=; b=mKuPnFZaGDkJCZshIJt11Tap7cuLqOZBT YER1wQZaGmCpJJXrPt83yTKrab6X4yz21OzRvauDeNLnZIRadDz5pCQQEq8VZ/bR ReT+xxGL1pX7yk/Rtma+HHsmYm1iiE/nJ9NDOrgtTi9nAEVYBF4hQMNBzpbFuF+3 gtTv+FiT/u5JxgSZJ/fJyZsmbn5sZAfIVAFQrRFjMvrdlcQ6zd3OeUv3x/zde6XE DPHXMW5a8F65QL6w3XTYNB/ewlaFYn4jeoCC/BuH9n+xs4it1SfGaFtU8lqZVydG hV5U7uKJZ3ywUqxpmXzw2ZAYd0TjG1LkpRpOyahQHdIwBq2phb+Ag==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
From: Daniel Shahaf <danielsh@xxxxxxxxxx>
---
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author