GNU bug report logs - #19218
Inconsistent spacing of output of "ls --full-time [file argument]"

Previous Next

Package: coreutils;

Reported by: michaels <at> michaels.demon.co.uk

Date: Sat, 29 Nov 2014 19:12:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

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: michaels <at> michaels.demon.co.uk, 19218 <at> debbugs.gnu.org
Subject: bug#19218: Inconsistent spacing of output of "ls --full-time [file argument]"
Date: Sat, 29 Nov 2014 13:14:33 -0800
I don't see a bug in the cases you mention.  First, 'ls' dynamically adjusts 
column widths to fit the data, and this is considered to be a feature.  Second, 
different platforms have different time stamp resolutions.  The idea that all 
dates should use the same width is doomed anyway, since file time stamps can 
exceed the year 9999:

$ touch -d'10000-01-01 00:00:00' far-in-future
$ touch now
$ ls -l --full-time
-rw-r--r-- 1 eggert eggert 0 10000-01-01 00:00:00.000000000 -0800 far-in-future
-rw-r--r-- 1 eggert eggert 0 2014-11-29 13:07:55.182466680 -0800 now

Arguably this last example *is* a bug in 'ls', as dates should line up even when 
they're outlandish.  But it's not likely to be a bug one runs into with real 
files, at least, not for another 7985 years or so.

> this email is sent with a
> legitimate email address, hopefully not for publication.

GNU bug reports are public, I'm afraid.




This bug report was last modified 10 years and 171 days ago.

Previous Next


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