From 04a89199d02a3ee6c4b3d89a6c782bdb0a4f1bc8 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:20:19 +0000 Subject: zsh-3.1.5-pws-12 --- Src/options.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Src/options.c') diff --git a/Src/options.c b/Src/options.c index 693132494..bfe146e1e 100644 --- a/Src/options.c +++ b/Src/options.c @@ -522,11 +522,20 @@ bin_setopt(char *nam, char **args, char *ops, int isun) /* Globbing option (-m) set. */ while (*args) { Comp com; + char *s, *t; + + t = s = dupstring(*args); + while (*t) + if (*t == '_') + chuck(t); + else { + *t = tulower(*t); + t++; + } /* Expand the current arg. */ - tokenize(*args); - if (!(com = parsereg(*args))) { - untokenize(*args); + tokenize(s); + if (!(com = parsereg(s))) { zwarnnam(nam, "bad pattern: %s", *args, 0); continue; } -- cgit 1.4.1