To: Long Doan Cc: Bill Davidson , djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: putenv() and system() Date: Tue, 07 Feb 95 08:54:21 +0200 From: "Eli Zaretskii" > 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().