From 6fadd46acd5b813b545b58014ddd591ffdb5a41c Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Mon, 15 Jun 2015 03:55:46 +0100 Subject: numfmt: handle suffixes consistently with --{from,to}-unit * src/numfmt.c (unit_to_umax): Support SI (power of 10) suffixes with the --from-unit and --to-unit options. Treat suffixes like is done with --from=auto, which for example will change the meaning of --to-unit=G to that of --to-unit=Gi. The suffix support was previously undocumented and it's better to avoid the traditional coreutils suffix handling in numfmt by default. * doc/coreutils.texi: Document the new behavior. Also fix a typo mentioning {from,to}=units=. * tests/misc/numfmt.pl: Adjust accordingly. * NEWS: Mention the change in behavior. --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 4c0f6e478..9d69da330 100644 --- a/NEWS +++ b/NEWS @@ -95,6 +95,9 @@ GNU coreutils NEWS -*- outline -*- insensitive file systems like HFS, mv would just remove a hardlinked 'file' if called like `mv file File`. The feature was added in coreutils-5.0.1. + numfmt --from-unit and --to-unit options now interpret suffixes as SI units, + and IEC (power of 2) units are now specified by appending 'i'. + tee will exit early if there are no more writable outputs. tee does not treat the file operand '-' as meaning standard output any longer, -- cgit v1.2.3-70-g09d2