laffer1 agreed they will need -DMKSH_MIDNIGHTBSD01ASH_COMPAT in the

short term, but only for /bin/sh – thus recommend to also define
-DMKSH_BINSHREDUCED and make it dependent on FPOSIX
This commit is contained in:
tg
2009-05-16 21:00:52 +00:00
parent 8a2557f846
commit 361dee04f3
2 changed files with 4 additions and 11 deletions

4
main.c
View File

@ -33,7 +33,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.127 2009/05/16 18:40:07 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.128 2009/05/16 21:00:51 tg Exp $");
extern char **environ;
@ -297,7 +297,7 @@ main(int argc, const char *argv[])
errorf("-c requires an argument");
#ifdef MKSH_MIDNIGHTBSD01ASH_COMPAT
/* compatibility to MidnightBSD 0.1 /bin/sh (not desired) */
if (argv[argi] && !strcmp(argv[argi], "--"))
if (Flag(FPOSIX) && argv[argi] && !strcmp(argv[argi], "--"))
++argi;
#endif
if (argv[argi])