move os2_init() from main() to main_init()
This commit is contained in:
parent
224fd5aebe
commit
2b9eed78a0
6
main.c
6
main.c
@ -197,6 +197,8 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
|
||||
for (i = 0; i < 3; ++i)
|
||||
if (!isatty(i))
|
||||
setmode(i, O_BINARY);
|
||||
|
||||
os2_init(&argc, &argv);
|
||||
#endif
|
||||
|
||||
/* do things like getpgrp() et al. */
|
||||
@ -655,10 +657,6 @@ main(int argc, const char *argv[])
|
||||
Source *s;
|
||||
struct block *l;
|
||||
|
||||
#ifdef __OS2__
|
||||
os2_init(&argc, &argv);
|
||||
#endif
|
||||
|
||||
if ((rv = main_init(argc, argv, &s, &l)) == 0) {
|
||||
if (Flag(FAS_BUILTIN)) {
|
||||
rv = shcomexec(l->argv);
|
||||
|
Loading…
Reference in New Issue
Block a user