add standard variable PATHSEP, for better and easier OS/2 support

This commit is contained in:
tg
2017-03-19 22:31:29 +00:00
parent 0530264293
commit 9466b49fe8
5 changed files with 39 additions and 16 deletions

3
main.c
View File

@ -34,7 +34,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.327 2017/03/19 22:23:45 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.328 2017/03/19 22:31:27 tg Exp $");
extern char **environ;
@ -364,6 +364,7 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
typeset("IFS= \t\n", 0, 0, 0, 0);
/* assign default shell variable values */
typeset("PATHSEP=" MKSH_PATHSEPS, 0, 0, 0, 0);
substitute(initsubs, 0);
/* Figure out the current working directory and set $PWD */