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


Message #11 received at 34608 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 34608 <at> debbugs.gnu.org
Subject: Re: bug#34608: date +%+4C is unimplemented, contrary to POSIX
Date: Thu, 21 Feb 2019 21:40:18 -0600
On 2/21/19 9:37 PM, Paul Eggert wrote:
> 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'.
> 

That used to be true, but now POSIX wants date to behave as if it uses
strftime:

http://austingroupbugs.net/view.php?id=466


-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




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

Previous Next


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