Subject: Re: Humanization of ls(1)
To: mouss <usebsd@free.fr>
From: David P. Reese Jr. <daver@gomerbud.com>
List: tech-userlevel
Date: 12/28/2003 01:22:28
On Sat, Dec 27, 2003 at 05:25:25PM -0700, Bruce J.A. Nourish wrote:
> On Sun, Dec 28, 2003 at 01:02:58AM +0100, mouss wrote:
> > >On Sat, 20 Dec 2003, David P. Reese Jr. wrote:
> > >
> > >>  When using '-sh', should the file sizes be printed in bytes or
> > >>  blocks?
> >
> > '-s' is for number of blocks, so it should print number of blocks
> > (in 512 bytes by default, but since -h is an addition, 1024 may be an 
> > Hubert Feyrer wrote:
> 
> GNU ls prints human readable sizes when -s and -h are on the same command
> line. That may be wrong, but if we did it, at least we'd be compatible 
> with someone.

SUSv3 says that '-s' is non portable and may be removed from the standard
in the future.  I'm not very excited about reading file sizes in gigablocks.

-- 
   David P. Reese, Jr.                                  daver at gomerbud.com
                                               http://www.gomerbud.com/daver/