]> git.ipfire.org Git - thirdparty/coreutils.git/commit
dd: summarize in --human-readable format too
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Dec 2015 19:43:09 +0000 (11:43 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 31 Dec 2015 19:49:55 +0000 (11:49 -0800)
commit8f9bf300174afa9b29027542ec59892f610c08e4
tree349c787e6aec9ae9dc1447936897da5e44320683
parent26323928d9b045c29c02028bf30823ead0b0be75
dd: summarize in --human-readable format too

Problem reported by Linda Walsh in: http://bugs.gnu.org/17505
* NEWS: Document this.
* doc/coreutils.texi (dd invocation): Use a simpler script.
Adjust output example to match new behavior.
* src/dd.c (human_size): Remove.
All uses changed to use human_readable and ...
(human_opts): ... this new constant.
(abbreviation_lacks_prefix): New function.
(print_xfer_stats): Use it.  Output both --si and --human-readable
summaries, but only if they have prefixes.
* tests/dd/reblock.sh, tests/dd/stats.sh: Test new behavior.
NEWS
doc/coreutils.texi
src/dd.c
tests/dd/reblock.sh
tests/dd/stats.sh