www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/13/11:19:48

Date: Wed, 8 Feb 95 22:03:16 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: eliz AT is DOT elta DOT co DOT il
Cc: bdavidson AT ra DOT isisnet DOT com, ldoan1 AT osf1 DOT gmu DOT edu, djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: putenv() and system()

> Not only TC, but also MSC and any other DOS-based compiler except
> DJGPP do this thusly.  It is, after all, the expected behavior,
> and system() is an ANSI function.

djgpp is certainly wrong, but although system() is ANSI, putenv() is
NOT ANSI, so ANSI cannot have anything to say about the environment
the child process gets.


> I hear that in v2.0 system() calls spawn(), so this problem will
> go away.

It does.  There was also a replacement system() posted a while back
that would also call spawn.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019