Mail Archives: djgpp/1999/06/07/14:51:18
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01BEB116.3CD4A6DE
Content-Type: text/plain;
charset="iso-8859-1"
Hello,
I've run into some problems with the MSDOS/DJGPP precompiled version of the
GNU 'date' utility, and wonder if someone might be able to help? It sounds
like at least one of them might be fixed by re-porting the latest GNU
version, for which I'd be most appreciative! I'd sent the email below a
while back to the GNU folks but haven't gotten a response from them.
Thanks in advance,
Dan S.
----------
From: Schullman, Dan
Sent: Thursday, 28 January 1999 13:36
To: 'sh-utils-bugs AT gnu DOT ai DOT mit DOT edu'
Subject: date bugs
Hello,
I've got some problems with the 'date' utility on Windows 9x and NT, as
follows.
I am using a precompiled MSDOS executable for date (GNU Sh-utils 1.12 to
MSDOS/DJGPP), obtained from the SimTel mirror of
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/sh112b.zip. I am running
on Microsoft Windows NT 4.0 and 95 systems, from command prompt windows.
I've named the executable 'gdate.exe', since the MSDOS shell treats 'date'
and even 'date.exe' as an internal command name.
PROBLEM #1: The -d option seems not to work with dates beyond 1999. For
example, 'gdate -d "2000-02-03"' is returned as if 1-Jan-1970. It sounds
like this may be fixed in the latest (1.16) version of the shell utilities,
based on a bug list I read somewhere, but I am looking for a precompiled
executable. I am NOT aware of a way to report such bugs or request a
recompile of the DJGPP GNU stuff.
PROBLEM #2: I am also unable to get the hyphen (-) and underscore (_)
syntaxes to suppress leading zeros. For example, 'gdate -d "1999-01-02"
+"%%-d"' gives me '-d' rather than '2'. [FYI, the doubling of the
percent-sign is necessary because MSDOS uses the percent-sign to indicate
MSDOS shell variable substitution.]
I hope I/we can get these problems rectified soon. As you may be aware, the
date capabilities provided by the MSDOS shell are pitiful!
Much thanks in advance!
Dan S.
------_=_NextPart_001_01BEB116.3CD4A6DE
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2232.0">
<TITLE>GNU date utility problems (Y2K, etc.)</TITLE>
</HEAD>
<BODY>
<P><U></U><A NAME=3D"_MailData"><U><FONT SIZE=3D2 =
FACE=3D"Arial">Hello,</FONT></U></A><U></U>
</P>
<P><U><FONT SIZE=3D2 FACE=3D"Arial">I've run into some problems with =
the MSDOS/DJGPP precompiled version of</FONT></U><U> <FONT SIZE=3D2 =
FACE=3D"Arial">the GNU</FONT></U><U> <FONT SIZE=3D2 =
FACE=3D"Arial">'date'</FONT></U><U><FONT SIZE=3D2 FACE=3D"Arial"> =
utility</FONT></U><U><FONT SIZE=3D2 FACE=3D"Arial">,</FONT></U><U> =
<FONT SIZE=3D2 FACE=3D"Arial">and wonder if someone might be able to =
help? It sounds like at least one of them might be fixed by =
re</FONT></U><U><FONT SIZE=3D2 FACE=3D"Arial">-</FONT></U><U><FONT =
SIZE=3D2 FACE=3D"Arial">porting the latest GNU version, for =
which</FONT></U><U> <FONT SIZE=3D2 FACE=3D"Arial">I'd be most =
appreciative!</FONT></U><U><FONT SIZE=3D2 FACE=3D"Arial"> I'd sent the =
email below a while back to the GNU folks but haven't gotten a =
response</FONT></U><U><FONT SIZE=3D2 FACE=3D"Arial"> from =
them</FONT></U><U><FONT SIZE=3D2 FACE=3D"Arial">.</FONT></U><U></U></P>
<P><U><FONT SIZE=3D2 FACE=3D"Arial">Thanks in =
advance,</FONT></U><U></U>
<BR><U><FONT SIZE=3D2 FACE=3D"Arial"> Dan S.</FONT></U><U></U>
</P>
<P><FONT SIZE=3D1 FACE=3D"MS Sans Serif">-</FONT><FONT SIZE=3D2 =
FACE=3D"Arial">---------</FONT>
<BR><B><FONT SIZE=3D2 FACE=3D"Arial">From: Schullman, =
Dan</FONT></B>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Sent: Thursday, 28 January 1999 =
13:36</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">To: =
'sh-utils-bugs AT gnu DOT ai DOT mit DOT edu'</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Subject: date =
bugs<B></B></FONT><B></B>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Hello,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">I've got some problems with the =
'date' utility on Windows 9x and NT, as follows.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">I am using a precompiled MSDOS =
executable for date (GNU Sh-utils 1.12 to MSDOS/DJGPP), obtained from =
the SimTel mirror of <A =
HREF=3D"ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/sh112b.zip" =
TARGET=3D"_blank">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/sh1=
12b.zip</A>. I am running on Microsoft Windows NT 4.0 and 95 systems, =
from command prompt windows. I've named the executable =
'gdate.exe', since the MSDOS shell treats 'date' and even 'date.exe' as =
an internal command name.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">PROBLEM #1: The -d option =
seems not to work with dates beyond 1999. For example, 'gdate -d =
"2000-02-03"' is returned as if 1-Jan-1970. It sounds like this may be =
fixed in the latest (1.16) version of the shell utilities, based on a =
bug list I read somewhere, but I am looking for a precompiled =
executable. I am NOT aware of a way to report such bugs or =
request a recompile of the DJGPP GNU stuff.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">PROBLEM #2: I am also =
unable to get the hyphen (-) and underscore (_) syntaxes to suppress =
leading zeros. For example, 'gdate -d "1999-01-02" +"%%-d"' gives me =
'-d' rather than '2'. [FYI, the doubling of the percent-sign is =
necessary because MSDOS uses the percent-sign to indicate MSDOS shell =
variable substitution.]</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">I hope I/we can get these =
problems rectified soon. As you may be aware, the date capabilities =
provided by the MSDOS shell are pitiful!</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Courier New">Much thanks in advance!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Courier New"> Dan S.</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01BEB116.3CD4A6DE--
- Raw text -