--- Begin Message ---
Subject: |
Bug is 'ls -k' command |
Date: |
Tue, 26 Jun 2012 15:11:43 -0500 |
When I use the -k switch with ls, like 'ls -lk' it used to show all
the file sizes in kibibytes. Now the switch, -k or --kibibytes has no
effect at all. This is with coreutils 8.17.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#11794: Bug is 'ls -k' command |
Date: |
Tue, 26 Jun 2012 15:28:46 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
tag 11794 notabug
thanks
On 06/26/2012 02:11 PM, Joseph Felps wrote:
> When I use the -k switch with ls, like 'ls -lk' it used to show all
> the file sizes in kibibytes. Now the switch, -k or --kibibytes has no
> effect at all. This is with coreutils 8.17.
Thanks for the report. However, from the NEWS for 8.15:
ls's -k option no longer affects how ls -l outputs file sizes.
It now affects only the per-directory block counts written by -l,
and the sizes written by -s. This is for compatibility with BSD
and with POSIX 2008. Because -k is no longer equivalent to
--block-size=1KiB, a new long option --kibibyte stands for -k.
[bug introduced in coreutils-4.5.4]
Sounds like you want to use --block-size=1KiB instead. Our change to -k
was intentional, to match POSIX, so this is not a bug.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
--- End Message ---