X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: rafael AT gauzon DOT com (rafael garcia) Newsgroups: comp.os.msdos.djgpp Subject: Re: system() return value if no program present Date: 21 Sep 2004 01:19:11 -0700 Organization: http://groups.google.com Lines: 41 Message-ID: <42da7100.0409210019.1af1c09d@posting.google.com> References: <01c49d67$Blat.v2.2.2$625a64a0 AT zahav DOT net DOT il> <42da7100 DOT 0409200424 DOT 59601f01 AT posting DOT google DOT com> <01c49f48$Blat.v2.2.2$03122900 AT zahav DOT net DOT il> NNTP-Posting-Host: 80.58.14.170 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1095754751 10447 127.0.0.1 (21 Sep 2004 08:19:11 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Tue, 21 Sep 2004 08:19:11 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote in message news:<01c49f48$Blat.v2.2.2$03122900 AT zahav DOT net DOT il>... > > From: rafael AT gauzon DOT com (rafael garcia) > > Date: 20 Sep 2004 05:24:02 -0700 > > > > "Eli Zaretskii" wrote in message news:<01c49d67$Blat.v2.2.2$625a64a0 AT zahav DOT net DOT il>... > > > So please post what you get on your system from the program I wrote. > > > If my program gives the same output on XP, you will need to tell more > > > about your program, since obviously `system' works as expected. > > > > When executed in my system I find myself in a new shell: > > > > Microsoft Windows XP [Versin 5.1.2600] > > (C) Copyright 1985-2001 Microsoft Corp. > > > > c:c> > > Didn't you said some time ago that everything works as expected? Or > was it someone else (am I talking to 2 people)? I don't know. This is a drawback of usenet :-) Perhaps I refered to another case. This problem appears only when the program I call does not exist. > How exactly did you invoke my program? what was the exact command > line? c:\c>eli > Anyway, if the program I posted puts you in a new shell, then > something is seriously wrong with your setup (assuming that you > compiled and run a DJGPP program). I am compiling roughly 2Mb EXEs with DJGPP regularly (1Mb without debug) > Are you at all able to invoke _any_ command via `system' from a short > test program without being put into a new shell? Yes, this days I am using system("pkunzip -o prueba.zip") with no problem (thought there is a problem with unzip32, I suppose you have seen that thread in this newsgroup)