[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: Re: [gentoo-dev] coreutils patch for 'ls -l' of GB files
From: Jason Cooper <gentoo () lakedaemon ! net>
Date: 2004-04-29 12:32:43
Message-ID: 20040429123243.GJ14678 () lakedaemon ! net
[Download RAW message or body]
Mike Frysinger (vapier@gentoo.org) scribbled:
> On Saturday 24 April 2004 01:09 pm, Daniel Drake wrote:
> > If you make your new behaviour default, you may break many peoples scripts
> > that expect the size column to be 8 characters long.
> >
> > My opinion is that your modification should become accessible only through
> > a non-default commandline parameter.
>
> actually i dont think anyone does that since 8 char is the *max* not the size
> *always* used
? Here is the output of my `ls -l` after creating 15 5k files w/ dd.
total 120
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp01
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp02
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp03
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp04
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp05
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp06
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp07
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp08
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp09
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp10
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp11
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp12
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp13
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp14
-rw-r--r-- 1 jcooper users 5120 Apr 29 07:39 temp15
| | | | <---8 chars and a space.
This is with the unmodified version. It appears to be staying with
eight chars width. What version of coreutils are you using? I'm using:
* sys-apps/coreutils
Latest version available: 5.0.91-r4
Latest version installed: 5.0.91-r4
>
> i was just programming something when i noticed that i had a dir of files that
> all were under 10000bytes ... then i made a file (by accident) that had more
> than that ... the output of `ls -l` changed to accomodate the larger file ...
> when i deleted it, the # of chars used to output the size shrunk from
> before ...
>
> so i dont think you'd break anything if the new patch became default
> behavior ... 'proper' parsing would have done it via awk or cut or something
> that operated on existence of whitespace (and not the size) as the
> delimiter ...
>
> as such, please file a bug with your patch Jason and assign it to
> base-system@gentoo.org
> -mike
Working on it. :)
Cooper.
--
gentoo-dev@gentoo.org mailing list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic