diff options
author | Peter Stephenson <pws@zsh.org> | 2014-06-03 09:53:02 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2014-06-03 09:53:02 +0100 |
commit | 4664dad925a44df3ac32640193fd559d13ba9318 (patch) | |
tree | 312a9182940f47349953c30b050552c6fda596f8 /Src | |
parent | 108fc822bde8ccfb9f1ee1e05ba11ce88d6fbd7f (diff) | |
download | zsh-4664dad925a44df3ac32640193fd559d13ba9318.tar.gz zsh-4664dad925a44df3ac32640193fd559d13ba9318.tar.xz zsh-4664dad925a44df3ac32640193fd559d13ba9318.zip |
unposted: restore cond_match() in case used in add-on module
Diffstat (limited to 'Src')
-rw-r--r-- | Src/cond.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Src/cond.c b/Src/cond.c index 6e9b55806..3807409e3 100644 --- a/Src/cond.c +++ b/Src/cond.c @@ -532,6 +532,17 @@ cond_val(char **args, int num) } /**/ +mod_export int +cond_match(char **args, int num, char *str) +{ + char *s = args[num]; + + singsub(&s); + + return matchpat(str, s); +} + +/**/ static void tracemodcond(char *name, char **args, int inf) { |