[SLL] newest "date" in RHL coreutils messes up my script

William Kreuter billyk at drizzle.com
Fri Jun 1 10:16:11 PDT 2007


When I recently did an up2date on coreutils, "date"
updated to 5.2.1 from 4.5.3.  This caused the result
of:

date -d 0jun07

to change from the desired "Thu May 31 00:00:00 PDT
2007" to "invalid date `0jun07'".

My script needs to obtain the previous day's date
on each day of the month.  Since I don't see an
argument to date which would do the reverse of
"date +%s", please give me some ideas with which I
could keep my bash script nice and compact.

As a stopgap, I reinstalled date 4.5.3.

Billy



More information about the linux-list mailing list