--- Begin Message ---
Subject: |
ls: unit displayed for block size when if size is displayed in human-readable format |
Date: |
Mon, 23 Jun 2014 13:17:09 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
ls utility currently displays suffix representing unit in blocks column if
--size is combined with --human-readable. For example:
$ ls -l -sh /tmp/foo
4.0K -rw-r--r--. 1 root root 6 Jun 23 11:32 foo
Suffix K in the output shown doesn't seem correct and implies false information.
Moreover if size of file is bigger say 1M then suffix used for blocks column
would be M. Looks like if file is small enough and no suffix is shown in size
column then suffix K is implied for # blocks column.
$ rpm -q coreutils
coreutils-8.22-14.fc21.x86_64
I contacted downstream maintainer first and this behavior shouldn't be caused by
downstream patch, therefore reporting here.
Please disregard this report if this is expected or bug is already reported.
Thanks,
Michal
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#17838: ls: unit displayed for block size when if size is displayed in human-readable format |
Date: |
Tue, 24 Jun 2014 10:44:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 06/24/2014 09:12 AM, Michal Sekletar wrote:
> On Mon, Jun 23, 2014 at 05:56:10PM +0100, Pádraig Brady wrote:
>> OK the info docs are clear enough, stating that -h is the same as
>> --block-size=human-readable etc. We might be able to tweak the
>> --help (man page) for the -s and/or -h options accordingly also.
>
> Sorry, didn't look at info pages. In any case, tweaking man page would be very
> appreciated. Thanks!
I'll push the attached later.
thanks,
Pádraig.
ls--size--help.patch
Description: Text Data
--- End Message ---