Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352431 - date operand "+" invalid in coreutils 8.7
Summary: date operand "+" invalid in coreutils 8.7
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-22 18:08 UTC by REdOG
Modified: 2011-01-24 17:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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`