Check sh.exe on OS/2 intead of sh

This commit is contained in:
KO Myung-Hun 2015-05-16 19:51:12 +09:00
parent 29161973e3
commit 3af76d7f94
1 changed files with 6 additions and 1 deletions

7
main.c
View File

@ -263,8 +263,13 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
return (1);
#if defined(MKSH_BINSHPOSIX) || defined(MKSH_BINSHREDUCED)
#ifdef __OS2__
#define EXE_EXT ".exe"
#else
#define EXE_EXT ""
#endif
/* are we called as -sh or /bin/sh or so? */
if (!strcmp(ccp, "sh")) {
if (!strcmp(ccp, "sh" EXE_EXT)) {
/* either also turns off braceexpand */
#ifdef MKSH_BINSHPOSIX
/* enable better POSIX conformance */