Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!sri-spam!ames!elroy!cit-vax!ucla-cs!claus From: claus@CS.UCLA.EDU Newsgroups: comp.sys.ibm.pc Subject: Re: MSC spawn() problem Message-ID: <9636@shemp.UCLA.EDU> Date: Thu, 3-Dec-87 12:47:28 EST Article-I.D.: shemp.9636 Posted: Thu Dec 3 12:47:28 1987 Date-Received: Mon, 7-Dec-87 05:58:01 EST References: <149000015@inmet> Sender: root@CS.UCLA.EDU Reply-To: claus@CS.UCLA.EDU (Claus Giloi) Organization: UCLA Computer Science Department Lines: 31 In article <149000015@inmet> ronw@inmet.UUCP writes: > >I believe that the Microsoft C Compiler has problems with environment >space when spawn-like library functions are used. Consider the following >program: > > main() > { > system("command"); > } > >When this program is run it spawns the sub-shell properly... > >Ron Wallace >Intermetrics, Inc. A related experience: I recently incorporated the same code into a program of mine, and en examination of memory revealed that two sub-shells had been loaded, something like command application command command I guess that makes sense, since it ran a shell and passed the command "command" to it, executing another shell. I does seem messy and unecessary though... ( DOS 3.2 ) Claus Giloi