X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sat, 04 Sep 2004 14:30:03 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c49272$Blat.v2.2.2$aaddb4c0@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: <0_a_c.15521$GR3.1990@newssvr27.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> 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: Sat, 04 Sep 2004 03:52:28 GMT > > > MS-DOS command.com date is an internal command so it is matched in > > command's internal command table if no explicit path prefix is given; > > for internal commands, there is no way to get command to search the > > path. > > That is true. It seems that bash can by pass this problem. > Not sure how it is done in bash. Bash doesn't have the built-in `date' command, that's why. Someone already explained that in this thread. > I tried to write a program to call from createproess() instead of > system(), it seems that date.exe is still from msdos. 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?