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

Bug 350602

Summary: sys-apps/coreutils-8.7 : ls does not show year as needed
Product: Gentoo Linux Reporter: DEMAINE Benoît-Pierre, aka DoubleHP <dhp_gentoo>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: xmw
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description DEMAINE Benoît-Pierre, aka DoubleHP 2011-01-04 22:45:44 UTC
dhp@uranus ~/.firefox/default $ stat bookmarks-52.html
  File: `bookmarks-52.html'
  Size: 327680          Blocks: 640        IO Block: 4096   regular file
Device: 906h/2310d      Inode: 1660644     Links: 1
Access: (0600/-rw-------)  Uid: ( 1000/     dhp)   Gid: ( 1000/     dhp)
Access: 2010-12-12 19:09:31.791250311 +0100
Modify: 2010-08-08 13:36:39.691387292 +0200
Change: 2010-08-08 13:36:39.691387292 +0200
 Birth: -
dhp@uranus ~/.firefox/default $ stat bookmarks-57.html
  File: `bookmarks-57.html'
  Size: 339968          Blocks: 664        IO Block: 4096   regular file
Device: 906h/2310d      Inode: 1666420     Links: 1
Access: (0600/-rw-------)  Uid: ( 1000/     dhp)   Gid: ( 1000/     dhp)
Access: 2010-12-12 19:09:39.526255954 +0100
Modify: 2010-11-29 01:56:58.420808902 +0100
Change: 2010-11-29 01:56:58.420808902 +0100
 Birth: -
dhp@uranus ~/.firefox/default $ ls -lh bookmarks-5*
-rw------- 1 dhp dhp  72K Jul  1  2010 bookmarks-50.html
-rw------- 1 dhp dhp 1.6M Jul  5  2010 bookmarks-51.html
-rw------- 1 dhp dhp 320K Aug  8 13:36 bookmarks-52.html
-rw------- 1 dhp dhp 1.8M Aug  9 13:25 bookmarks-53.html
-rw------- 1 dhp dhp 1.8M Aug 30 19:00 bookmarks-54.html
-rw------- 1 dhp dhp  24K Oct 16 03:15 bookmarks-55.html
-rw------- 1 dhp dhp 1.9M Nov 22 23:51 bookmarks-56.html
-rw------- 1 dhp dhp 332K Nov 29 01:56 bookmarks-57.html
-rw------- 1 dhp dhp 356K Jul 23  2009 bookmarks-5.html
dhp@uranus ~/.firefox/default $ locale
LANG=en_GB.ISO-8859-15
LC_CTYPE="en_GB.ISO-8859-15"
LC_NUMERIC="en_GB.ISO-8859-15"
LC_TIME="en_GB.ISO-8859-15"
LC_COLLATE="en_GB.ISO-8859-15"
LC_MONETARY="en_GB.ISO-8859-15"
LC_MESSAGES="en_GB.ISO-8859-15"
LC_PAPER="en_GB.ISO-8859-15"
LC_NAME="en_GB.ISO-8859-15"
LC_ADDRESS="en_GB.ISO-8859-15"
LC_TELEPHONE="en_GB.ISO-8859-15"
LC_MEASUREMENT="en_GB.ISO-8859-15"
LC_IDENTIFICATION="en_GB.ISO-8859-15"
LC_ALL=en_GB.ISO-8859-15
dhp@uranus ~/.firefox/default $

This is very much ambiguous ... 

I can understand it does not show day when day is today; but i can not understand it won't show year when year is not current one.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2011-01-05 00:24:17 UTC
@base-system: Is this introduced by gentoo specific patches?
Comment 2 SpanKY gentoo-dev 2011-01-05 00:36:26 UTC
it's trivial for you to test that theory with USE=vanilla

i dont see any problem with the output in question.  coreutils has always truncated the date according to how recent it is.  if you want unambiguous output, use --time-style.
Comment 3 Michael Weber (RETIRED) gentoo-dev 2011-01-05 16:54:59 UTC
you might be interested in 

ls -l --time-style=long-iso

or

ls -l --full-time