Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Modules that load but do nothing
- X-seq: zsh-workers 34338
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Modules that load but do nothing
- Date: Wed, 21 Jan 2015 19:41:38 -0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
If you configure --disable-dynamic and then force modules to be linked
by changing config.modules to "link=static", the build will create the
necessary .a file so that the linking phase completes, and loading the
module with "zmodload" will return a zero status; but it is possible in
this case for some modules to load with no features.
The plainest example of this is zsh/pcre, which will compile and link
but fail the V07 test suite.
Are there other such modules? zsh/regex and zsh/curses, perhaps? There
are no tests applied to the latter; the former is tested in C02.
I'd suggest that at least we do the following:
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
index 3a65331..3c25be2 100644
--- a/Test/V07pcre.ztst
+++ b/Test/V07pcre.ztst
@@ -1,6 +1,6 @@
%prep
- if ! zmodload zsh/pcre 2>/dev/null
+ if ! zmodload -F zsh/pcre C:pcre-match 2>/dev/null
then
ZTST_unimplemented="the zsh/pcre module is not available"
return 0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author