delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/09/03/01:45:18

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Trace-PostClient-IP: 68.147.131.211
From: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: date.exe in shl2011b.zip
Organization: Systematic Software
Message-ID: <t00gj0prgu7o9k0mo7n3ejtpj7ekr9jnh8@4ax.com>
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>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Lines: 40
Date: Fri, 03 Sep 2004 05:31:04 GMT
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse AT shaw DOT ca
X-Trace: pd7tw1no 1094189464 24.71.223.147 (Thu, 02 Sep 2004 23:31:04 MDT)
NNTP-Posting-Date: Thu, 02 Sep 2004 23:31:04 MDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Fri, 03 Sep 2004 04:20:57 GMT in comp.os.msdos.djgpp,
"one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com> wrote:

>DJ Delorie wrote:
>>>Now I have a question about date.exe in shl2011b.zip. why date.exe
>>>work the same as msdos's built-in date.exe? I thought date.exe
>>>from shl2011b.zip should work the same as binary date in unix.
>> 
>> 
>> It's likely that you are still running the MS-DOS builtin date.
>> 
>> Try ".\date" or run bash first.
>
>
>under msdos
>C:\>c:\fsf\bin\date.exe
>Current date is Thu 09/02/2004
>Enter new date (mm-dd-yy):
>
>
>Under bash:
>bash-2.05b$ c:/fsf/bin/date.exe
>Thu Sep  2 21:22:48  2004
>bash-2.05b$
>
>not sure what is magic here?

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.
OTOH bash has no internal date command (unless you add one using a
function definition or define an alias for date) so it has to search
the path for a date program. 

-- 
Thanks. Take care, Brian Inglis 	Calgary, Alberta, Canada

Brian DOT Inglis AT CSi DOT com 	(Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
    fake address		use address above to reply

- Raw text -


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