GNU bug report logs - #34608
date +%+4C is unimplemented, contrary to POSIX

Previous Next

Package: coreutils;

Reported by: Eric Blake <eblake <at> redhat.com>

Date: Thu, 21 Feb 2019 17:11:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eric Blake <eblake <at> redhat.com>
Cc: 34608 <at> debbugs.gnu.org
Subject: bug#34608: date +%+4C is unimplemented, contrary to POSIX
Date: Thu, 21 Feb 2019 19:37:46 -0800
Eric Blake wrote:

> date -d 0001-01-01 +.%+4C.
> 
> should produce ".+000.", but currently it produces ".%+4C." because the
> + flag is unimplemented.
> 
> See also http://austingroupbugs.net/view.php?id=1184

Surely this bug should be reported against strftime, not against 'date'. POSIX 
does require that strftime behave that way, but it does not place a similar 
requirement on 'date'.




This bug report was last modified 6 years and 147 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.