a few more mksh-os2 inspired fixes

This commit is contained in:
tg
2015-07-09 19:28:21 +00:00
parent 3d8ba005e1
commit 041666eefb
4 changed files with 29 additions and 13 deletions

4
main.c
View File

@ -34,7 +34,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.296 2015/07/09 19:19:10 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.297 2015/07/09 19:28:20 tg Exp $");
extern char **environ;
@ -264,7 +264,7 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
#if defined(MKSH_BINSHPOSIX) || defined(MKSH_BINSHREDUCED)
/* are we called as -sh or /bin/sh or so? */
if (!strcmp(ccp, "sh")) {
if (!strcmp(ccp, "sh" MKSH_EXE_EXT)) {
/* either also turns off braceexpand */
#ifdef MKSH_BINSHPOSIX
/* enable better POSIX conformance */