diff options
Diffstat (limited to 'glob.c')
-rw-r--r-- | glob.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -59,6 +59,11 @@ static char sccsid[] = "@(#)glob.c 5.12 (Berkeley) 6/24/91"; #include "sh.h" #include "glob.h" +#ifndef HAVE_MBLEN +#undef mblen +#define mblen(_s,_n) mbrlen((_s),(_n),NULL) +#endif + #undef Char #undef QUOTE #undef TILDE @@ -433,6 +438,7 @@ glob(const char *pattern, int flags, int (*errfunc) (const char *, int), dest = copy; src = pattern; while (*src != EOS) { + /* Don't interpret quotes. The spec does not say we should do */ if (*src == QUOTE) { if (*++src == EOS) --src; |