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 [email protected] +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
