From: Kbwms AT aol DOT com Message-ID: <689509d3.3628a0c2@aol.com> Date: Sat, 17 Oct 1998 09:50:58 EDT To: Andris Pavenis Cc: djgpp-workers AT delorie DOT com Mime-Version: 1.0 Subject: Re: Bug in system () (DJGPP-2.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: AOL 3.0 16-bit for Windows sub 38 Reply-To: djgpp-workers AT delorie DOT com Dear Andris Pavenis, On 10-17-98 at 08:11:11 EST you wrote: > Hi! > > There is following bug in function system() in last alpha version of > DJGPP (file src/libc/ansi/stdlib/system.c in djlsr202.zip): > > system ("somename.bat"); > > crashes DOS session under WIN95 as plainsystem() errorously > uses __spawnve() [line 233] instead of invoking shell. That of course > is wrong for BAT file. > I ran your program under make 3.76.1 and Windows 3.1. Your program produced two instructions in test.bat on my system: dir ls A bit overdone but harmless. The size of the executable is 425,563 bytes which seems a trifle excessive. K.B. Williams