Check sh.exe on OS/2 intead of sh
This commit is contained in:
parent
29161973e3
commit
3af76d7f94
7
main.c
7
main.c
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user