diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-12-31 14:09:05 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-12-31 14:09:36 -0800 |
commit | 2dab6cd3c2e18eb574b24e54fba86a33c80b6a27 (patch) | |
tree | af6569ae6178b4a9464f2afd3d36047238738c73 /NEWS | |
parent | 8f9bf300174afa9b29027542ec59892f610c08e4 (diff) | |
download | coreutils-2dab6cd3c2e18eb574b24e54fba86a33c80b6a27.tar.xz |
dd: append spaces to shorter status=progress line
Problem noted by Pádraig Brady in: http://bugs.gnu.org/22277#8
Also, make the output a bit more precise while we're at it.
* NEWS: Document this.
* src/dd.c (previous_time): Remove, replacing with ...
(next_time): New var. All uses changed.
This avoids some rounding errors, and should be a bit faster.
(newline_pending): Remove, replacing with ...
(progress_len): New var. All uses changed.
This lets us keep track of how many trailing spaces to append.
(print_xfer_stats): Get the time first thing, so that it's
closer to being correct. Count the bytes output, and append
trailing spaces if needed. Add remarks to translators about
translation lengths.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -32,6 +32,8 @@ GNU coreutils NEWS -*- outline -*- dd now summarizes sizes in --human-readable format too, not just --si. E.g., "3441325000 bytes (3.4 GB, 3.2 GiB) copied". It omits the summaries if they would not provide useful information, e.g., "3 bytes copied". + Its status=progress output now uses the same format as ordinary status, + perhaps with trailing spaces to erase previous progress output. md5sum now supports the --ignore-missing option to allow verifying a subset of files given a larger list of checksums. |