related to LP#1025843 fix tab completion for tilde

this code is insane, who wrote globbing and expansion for mksh’s
predecessor must have been on very interesting drugs
This commit is contained in:
tg
2012-08-24 21:15:42 +00:00
parent 42ac0dc08e
commit e2d1f3bf99
3 changed files with 16 additions and 24 deletions

7
eval.c
View File

@ -23,7 +23,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.127 2012/08/24 20:57:45 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.128 2012/08/24 21:15:42 tg Exp $");
/*
* string expansion
@ -1008,12 +1008,9 @@ expand(const char *cp, /* input word */
}
break;
}
else {
else
/* undo temporary */
quote &= ~2;
if (f & DOKEEPQCHAR)
*dp++ = QCHAR;
}
if (make_magic) {
make_magic = false;