shellutils bug in the "date" command

[email protected]
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
We found a bug in the "date" command in shellutils.  (We renamed it 
"gnudate".)

Today is Monday, April 8th, the day after the Daylight Savings time 
change.

If we try to get the date of "last saturday", it reports Friday.  It looks 
like it reports Saturday, but then subtracts an hour because of DST, which 
makes it Friday.


/home/dmullig: gnudate --v  
date (GNU sh-utils) 2.0  
Written by David MacKenzie.  
  
Copyright (C) 1999 Free Software Foundation, Inc.  
This is free software; see the source for copying conditions.  There is NO 
 
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE. 

/home/dmullig: gnudate  
Mon Apr  8 08:40:42 EDT 2002  

/home/dmullig: gnudate -d"last saturday"  
Fri Apr  5 23:00:00 EST 2002  

--
David J Mulligan Jr
Spartan Stores
(419) 891-4954
[email protected]

"Can we fix it?  Yes we can!" - Bob the Builder
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.