X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Mon, 06 Sep 2004 08:08:30 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c493cf$Blat.v2.2.2$b201eb00@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: <7cy_c.11854$QJ3.10829@newssvr21.news.prodigy.com> (one2001boy AT yahoo DOT com) Subject: Re: date.exe in shl2011b.zip References: <200409030334 DOT i833Y487011049 AT envy DOT delorie DOT com> <0_a_c.15521$GR3 DOT 1990 AT newssvr27 DOT news DOT prodigy DOT com> <01c49272$Blat.v2.2.2$aaddb4c0 AT zahav DOT net DOT il> <7cy_c.11854$QJ3 DOT 10829 AT newssvr21 DOT news DOT prodigy DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "one2001boy AT yahoo DOT com" > Date: Sun, 05 Sep 2004 06:17:39 GMT > > I am checking how bash can call date.exe correctly even if it doesn't > have the built-in command. Your answer below might answer the qusetion > since system() in djgpp won't call call date.exe first. Bash will call date.exe _because_ it doesn't have the built-in command `date'. > > The DJGPP version of `system' should have found date.exe first. And > > we don't have `createprocess' in DJGPP. Are you at all using DJGPP? > > I use both djgpp and VC++. system() in VC++ will call date.exe first if > found. Thanks. Actually, it should be the other way around: VC++ always calls the shell, so the built-in `date' command will be invoked, while the DJGPP implementation of `system' will first look for an external date.exe and only if not found, will call the shell built-in. If this doesn't work for you, please present a short test program that can be compiled and run to reproduce your problem.