[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
relative time modifiers in getdate yacc parser broken with coreutils 5.9
From: |
Andreas Arens |
Subject: |
relative time modifiers in getdate yacc parser broken with coreutils 5.94 |
Date: |
Thu, 20 Apr 2006 19:55:07 +0200 |
User-agent: |
KMail/1.9.1 |
Symptom:
the 'ago' keyword only applies to the last descriptive time element, not
globally as it did before.
Sample:
(coreutils 5.3.0 - correct)
date -d '5 hours 30 mins ago'
Thu Apr 20 14:18:52 CEST 2006
date -d '5 hours ago'
Thu Apr 20 14:48:56 CEST 2006
(coreutils 5.94 - wrong)
coreutils-5.94/src/date -d '5 hours 30 mins ago'
Fri Apr 21 00:21:05 CEST 2006
coreutils-5.94/src/date -d '5 hours ago'
Thu Apr 20 14:51:10 CEST 2006
coreutils-5.94/src/date -d '5 hours ago 30 mins ago'
Thu Apr 20 14:21:17 CEST 2006
The 3rd example is nonsense, as the parser is intended to interpret natural
speech, but shows the problem.
Please CC me on a solution, I'm not subscribed.
Best Regards
Andy
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- relative time modifiers in getdate yacc parser broken with coreutils 5.94,
Andreas Arens <=