diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-28 22:57:39 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-28 22:57:39 +0000 |
commit | b0c5f09169ac31855ebf0e93772bb57b9635b380 (patch) | |
tree | 410c43a9843b2c88166c2cb9acd531eaa36d036d /Src/cond.c | |
parent | bd7632079045b1b6d0dee498c40833b409cf757e (diff) | |
download | zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar.gz zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar.xz zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.zip |
see 23479: add initial features support for modules
Diffstat (limited to 'Src/cond.c')
-rw-r--r-- | Src/cond.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/cond.c b/Src/cond.c index 8950d845c..a597587b6 100644 --- a/Src/cond.c +++ b/Src/cond.c @@ -95,7 +95,10 @@ evalcond(Estate state, char *fromtest) case COND_REGEX: { char *modname = isset(REMATCHPCRE) ? "zsh/pcre" : "zsh/regex"; - if (!load_module_silence(modname, 1)) { + /* + * TODO: we just need to load the appropriate condition. + */ + if (load_module_silence(modname, NULL, 1) == 1) { zwarnnam(fromtest, "%s not available for regex", modname); return 2; |