delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/09/05/02:30:25

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
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>
In-Reply-To: <01c49272$Blat.v2.2.2$aaddb4c0@zahav.net.il>
Lines: 32
Message-ID: <7cy_c.11854$QJ3.10829@newssvr21.news.prodigy.com>
NNTP-Posting-Host: 68.125.129.136
X-Complaints-To: abuse AT prodigy DOT net
X-Trace: newssvr21.news.prodigy.com 1094365059 ST000 68.125.129.136 (Sun, 05 Sep 2004 02:17:39 EDT)
NNTP-Posting-Date: Sun, 05 Sep 2004 02:17:39 EDT
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: Q[R_PJONEZVSSWLSX@]D]_\@VR]^@B AT MCPWZKB]MPXHTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U AT FRFUEXR@KFXYDBPWBCDQJA AT X_DCBHXR[C@\EOKCJLED_SZ AT RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN
Date: Sun, 05 Sep 2004 06:17:39 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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

> 
>>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?

I use both djgpp and VC++. system() in VC++ will call date.exe first if 
found. Thanks.

- Raw text -


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