diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-06 18:01:35 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-06 18:01:35 +0000 |
commit | 784c413690c71212ad9e08bb093414abd1cacc08 (patch) | |
tree | 450cc9242047dd50255af3b1ef940dae5bb3ab39 /Src/options.c | |
parent | 61e68d70da5af5afe943f92cd94a8c96e78348d9 (diff) | |
download | zsh-784c413690c71212ad9e08bb093414abd1cacc08.tar.gz zsh-784c413690c71212ad9e08bb093414abd1cacc08.tar.xz zsh-784c413690c71212ad9e08bb093414abd1cacc08.zip |
zsh-3.1.6-pws-1 zsh-3.1.6-pws-1
Diffstat (limited to 'Src/options.c')
-rw-r--r-- | Src/options.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Src/options.c b/Src/options.c index 0207cd232..03fa89f5a 100644 --- a/Src/options.c +++ b/Src/options.c @@ -526,7 +526,7 @@ bin_setopt(char *nam, char **args, char *ops, int isun) } else { /* Globbing option (-m) set. */ while (*args) { - Comp com; + Patprog pprog; char *s, *t; t = s = dupstring(*args); @@ -540,12 +540,12 @@ bin_setopt(char *nam, char **args, char *ops, int isun) /* Expand the current arg. */ tokenize(s); - if (!(com = parsereg(s))) { + if (!(pprog = patcompile(s, PAT_STATIC, NULL))) { zwarnnam(nam, "bad pattern: %s", *args, 0); continue; } /* Loop over expansions. */ - scanmatchtable(optiontab, com, 0, OPT_ALIAS, setoption, !isun); + scanmatchtable(optiontab, pprog, 0, OPT_ALIAS, setoption, !isun); args++; } } @@ -653,6 +653,14 @@ dosetopt(int optno, int value, int force) setuid(getuid()); setgid(getgid()); #endif /* HAVE_SETUID */ +#ifndef JOB_CONTROL + } else if(optno == MONITOR && value) { + return -1; +#endif /* not JOB_CONTROL */ +#ifdef GETPWNAM_FAKED + } else if(optno == CDABLEVARS && value) { + return -1; +#endif /* GETPWNAM_FAKED */ } opts[optno] = value; if (optno == BANGHIST || optno == SHINSTDIN) |