bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date(1): -d argument parsing error


From: Jan Minář
Subject: date(1): -d argument parsing error
Date: Tue, 9 Dec 2008 17:19:56 +0000

Hi.

date(1) command parses "next $day_of_week_today" (where
$day_of_week_today is today's day name) incorrectly:

$ date
Tue Dec  9 17:16:50 GMT 2008
$ date -d "next `date +%A`"
Tue Dec  9 00:00:00 GMT 2008

It should print the next Tuesday's date, i.e. today + 7 days.

Cheers,
Jan.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]