ls: -k no longer affects -l's file sizes
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Nov 2011 07:21:13 +0000 (23:21 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Nov 2011 07:21:50 +0000 (23:21 -0800)
commit448718c123838891500afa7fbda06335e7258592
tree8c0bb1d206db461f72cd4a192e0a439d980466c9
parent1d9fe527a0ff85ca757a74338c5f1b523473b377
ls: -k no longer affects -l's file sizes

This fixes an incompatibility with POSIX 2008 and with BSD.
Problem reported by Abdallah Clark (Bug#9939)
via Alan Curry (Bug#10016).
* NEWS: Document this.
* doc/coreutils.texi (General output formatting): Document the
new -k behavior, and --kibibytes.
* src/ls.c (file_human_output_opts): New static var.
(long_options, usage): Add --kibibytes.
(decode_switches, gobble_file, print_long_format):
Implement the new -k behavior.
* tests/ls/block-size: New file.
* tests/Makefile.am (TESTS): Add it.
NEWS
doc/coreutils.texi
src/ls.c
tests/Makefile.am
tests/ls/block-size [new file with mode: 0644]