Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 352431

Summary: date operand "+" invalid in coreutils 8.7
Product: Gentoo Linux Reporter: REdOG <bugzilla>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: floppym
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description REdOG 2011-01-22 18:08:36 UTC
Formated dates cannot be created with the date command produced by emerging coreutils 8.7

Reproducible: Always

Steps to Reproduce:
#emerge coreutils

[ebuild   R   ] sys-apps/coreutils-8.7  USE="acl nls unicode -caps -gmp (-selinux) -static -vanilla -xattr" 0 kB




Actual Results:  
#date +"%F"
date: extra operand `+%F'
Try `date --help' for more information.

Expected Results:  
2011-01-22

Building from /usr/portage/distfiles/coreutils-8.7.tar.xz produces a date command that accepts the + operand as expected.


#./configure && make && src/date +"%F"
...
...
2011-01-22
Comment 1 Rafał Mużyło 2011-01-22 18:28:12 UTC
Attach build log - seems to work fine here.
Comment 2 Mike Gilbert gentoo-dev 2011-01-22 18:50:26 UTC
Works for me as well.

Maybe you have some other "date" command in your PATH and that is being called instead. Try calling /bin/date to eliminate that possibility.
Comment 3 REdOG 2011-01-24 17:47:28 UTC
This is definitly not a path issue.

ls -l `which date`