Mail Archives: djgpp/1995/02/07/07:12:38
> When the program calls putenv (), it only modifies its own copy of the
> environment, which will be coppied to the child process's stack. But
> when system () is called, command.com looks at DOS's copy of the
> environment, which doesn't have the modification.
That copy to child's stack happens only when spawn() is called.
This is different from other DOS compilers, where putenv() also
affects system(). Fortunately, in v2.0 system() calls spawn().
- Raw text -