From 448718c123838891500afa7fbda06335e7258592 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 11 Nov 2011 23:21:13 -0800 Subject: 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. --- tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 5021c1844..64366a491 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -415,6 +415,7 @@ TESTS = \ ln/slash-decorated-nonexistent-dest \ ln/target-1 \ ls/abmon-align \ + ls/block-size \ ls/color-clear-to-eol \ ls/color-dtype-dir \ ls/color-norm \ -- cgit v1.2.3-54-g00ecf