repair globbing $foo/ba*r/baz

This commit is contained in:
tg
2012-08-24 20:05:13 +00:00
parent 829cd0cc70
commit 2ed6e8998c
3 changed files with 48 additions and 45 deletions

7
eval.c
View File

@ -23,7 +23,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.125 2012/08/24 19:02:57 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.126 2012/08/24 20:05:13 tg Exp $");
/*
* string expansion
@ -1009,9 +1009,12 @@ expand(const char *cp, /* input word */
}
break;
}
else
else {
/* undo temporary */
quote &= ~2;
if (f & DOKEEPQUOTE)
*dp++ = '\\';
}
if (make_magic) {
make_magic = false;