Subject: Re: Humanization of ls(1)
To: David P. Reese Jr. <email@example.com>
From: Bruce J.A. Nourish <firstname.lastname@example.org>
Date: 12/28/2003 11:03:52
On Sun, Dec 28, 2003 at 01:22:28AM -0800, David P. Reese Jr. wrote:
> 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
> > 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.
"-s" is already in NetBSD. The question is how "-h" interacts with it.
Bruce J.A. Nourish <email@example.com> http://bjan.freeshell.org