diff options
author | Michael Speer <knomenet@gmail.com> | 2009-04-27 14:51:29 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2009-05-26 14:49:17 +0100 |
commit | 159faba1376ffd5a46fe4bbc780d85dd3e502cea (patch) | |
tree | 26c0be6ee86af0609569bdc7af0999e03b1e2b3e /src/uname.h | |
parent | c45c51fe97193898f3909dcf5e4c0e117ab239a2 (diff) | |
download | coreutils-159faba1376ffd5a46fe4bbc780d85dd3e502cea.tar.xz |
sort: new --human-numeric-sort option to sort KiB MB etc.
* NEWS: Document the new option
* doc/coreutils.texi (sort invocation): ditto
* src/sort.c (main): handle the new --human-numeric-sort option (-h).
(human_numcompare): A new function to compare SI and IEC suffixes
before falling back to the standard --numeric comparison.
(find_unit_order): A new helper function to find the order
of magnitude of a number string as determined by its suffix.
(check_mixed_SI_IEC): A new helper function to exit with error
if both SI and IEC suffixes are presented.
* tests/misc/sort: Add 8 tests to test the new functionality.
* THANKS: Update
Diffstat (limited to 'src/uname.h')
0 files changed, 0 insertions, 0 deletions