mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
43493: Have V07pcre fail if PCRE was enabled by configure (config.modules) but failed to load for any reason.
This commit is contained in:
parent
e9a75f4bc7
commit
dc2bfeee26
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2018-09-24 Daniel Shahaf <danielsh@apache.org>
|
||||||
|
|
||||||
|
* 43493: Test/V07pcre.ztst: Have V07pcre fail if PCRE was enabled
|
||||||
|
by configure (config.modules) but failed to load for any reason.
|
||||||
|
|
||||||
2018-09-24 Peter Stephenson <p.stephenson@samsung.com>
|
2018-09-24 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
* 43527, tweaked: Etc/FAQ.yo: describe "which" output
|
* 43527, tweaked: Etc/FAQ.yo: describe "which" output
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
%prep
|
%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
|
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
|
return 0
|
||||||
fi
|
fi
|
||||||
# Load the rest of the builtins
|
|
||||||
zmodload zsh/pcre
|
zmodload zsh/pcre
|
||||||
setopt rematch_pcre
|
setopt rematch_pcre
|
||||||
# Find a UTF-8 locale.
|
# Find a UTF-8 locale.
|
||||||
|
|
Loading…
Reference in a new issue