fixup the remaining issues and last optimisations
This commit is contained in:
4
eval.c
4
eval.c
@ -23,7 +23,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.205 2017/04/27 19:33:47 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.206 2017/04/27 23:12:46 tg Exp $");
|
||||
|
||||
/*
|
||||
* string expansion
|
||||
@ -1728,7 +1728,7 @@ debunk(char *dp, const char *sp, size_t dlen)
|
||||
memmove(dp, sp, s - sp);
|
||||
for (d = dp + (s - sp); *s && (d - dp < (ssize_t)dlen); s++)
|
||||
if (!ISMAGIC(*s) || !(*++s & 0x80) ||
|
||||
!vstrchr("*+?@! ", *s & 0x7f))
|
||||
!ctype(*s & 0x7F, C_PATMO))
|
||||
*d++ = *s;
|
||||
else {
|
||||
/* extended pattern operators: *+?@! */
|
||||
|
Reference in New Issue
Block a user