delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/09/06/01:09:50

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" <eliz AT gnu DOT org>
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>
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: <CsRZc.14863$hL1 DOT 14760 AT newssvr27 DOT news DOT prodigy DOT com> <200409030334 DOT i833Y487011049 AT envy DOT delorie DOT com> <JiSZc.15226$cF4 DOT 7651 AT newssvr29 DOT news DOT prodigy DOT com> <t00gj0prgu7o9k0mo7n3ejtpj7ekr9jnh8 AT 4ax 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

> From: "one2001boy AT yahoo DOT com" <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.

- Raw text -


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