GNU bug report logs -
#12489
inconsistent output from 'dd' w/rt stats and suppression.
Previous Next
Reported by: Linda Walsh <coreutils <at> tlinx.org>
Date: Sat, 22 Sep 2012 19:12:01 UTC
Severity: normal
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
It is being called from a program to copy text to a file as root.
It's not running shell.
I wanted to leave stderr for ERROR's and turn off statistics...
Maybe Unix needs to add a STDSTAT on FD3?
1/2 :-) (i.e. there are a few instances where a stat line separate from
and error line would be handy).
Like running FLAC -- first they came out with a --silent to silence
statistic... but then that was too much.
So then they add a --totally-silent. And guess what!
They still issue warnings about things that don't prevent correct
encoding. If you have MS-metadata in your WAV's, flac will complain whether
you tell it to ignore it or you don't. If you don't ignore it and try to
explicitly include it as data in 'passthrough', it warns you that this
option is
experimental. If you don't use that option, it tells you it found such
data and
to use passthrough!!!
What part of "--totally silent", especially after they already broke
--silent,
did they not understand? ARG!!! So
back to dd...
It's a unix util. Generally, quiet is beautiful. It means everything went
well. That's generally been the unix motto (apart from deliberate silencing
switches, which are intended to ignore error conditions). So why not make
no xfer really not put out ANY xfer stats (as records in/out are xfer
statistics)?
Then add another option (or vice versa -- add another to shut both up,
whatever), like nosummary, or noIO to skip the records I/O...
Could even (in copious spare time, I'm sure, through in a format facility
like 'DATE'... for the output format (like BASH does with HISTTIMEFORMAT):
"%i records in, %I partial\n"%o records out, %O partial\n%b total bytes
(%{HB}) in %{H:+%H hours, }%{M:+%M minutes, }%{S:+%S seconds}, %{XPS}"
(speed/rate)
But I shouldn't have to turn off all errors (close STDERR) just to shut up
the chit-chat (silence is beautiful!)
g.esp <at> free.fr wrote:
> dd if=/dev/zero of=/tmp/foo count=1024 2>/dev/null || echo "dd fail"
> Gilles
>
[Message part 2 (text/html, inline)]
This bug report was last modified 12 years and 245 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.