Hi folks:
There is a bug in the GNU date program. If this week is a new month and you
look for the date for last friday (last month), it will give you a day
earlier (which is the wrong date). If this week has the same month as last
week, then the output is correct.
For example:
% date
Wed Apr 4 15:36:59 EDT 2001 (correct)
% date --date='last friday'
Thu Mar 29 23:00:00 EST 2001 (wrong)
% date --date='last monday'
Mon Apr 2 00:00:00 EDT 2001 (correct)
I haven't look deep into the source code yet, but it is obvious a bug in
GNU date. If someone already have a patch for this, I would appreciate
they send it to me instead of duplicating someone else's work. Thanks.
-KHY
_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils