Hello,

the manpage of the -nv option tells us/me:
       --non-verbose
           Non-verbose output---turn off verbose without being
           completely quiet (use -q for that), which means that
           error messages and basic information still get
           printed.

I you want just informed about errors you use -nv and redirect
stdout to /dev/null and expect only be informed about errors/warnings.
But wget uses stderr also for "basic information" which doesn't
look correct.

Here the example from the bugreport (http://bugs.debian.org/141323):
(wget 1.8.1)

"% wget -nv 
ftp://ftp.de.debian.org/debian/dists/unstable/main/binary-alpha/Packages.gz >/dev/null
14:34:14 URL: 
ftp://ftp.de.debian.org/debian/dists/unstable/main/binary-alpha/Packages.gz [1727371] 
-> "Packages.gz" [1]
% echo $?
0

That message was not an error (or warning), so it should not have been
printed on stderr, but on stdout. Printing it on stderr makes it hard to
filter out informative messages and keep the errors; if the errors and
normal messages were separated to stderr and stdout respectively, a simple
>/dev/null would work."

I found this in the Changelog:

2000-11-05  Hrvoje Niksic  <[EMAIL PROTECTED]>
"(redirect_output): Print messages to stderr, not to stdout."

And this in log.c:
      /* The log goes to stderr to avoid collisions with the output if
         the user specifies `-O -'.  #### Francois Pinard suggests
         that it's a better idea to print to stdout by default, and to
         stderr only if the user actually specifies `-O -'.  He says
         this inconsistency is harder to document, but is overall
         easier on the user.  */

Will this be changed so the user could use -nv with >/dev/null
and get only errors or warnings displayed?

Thank you!

-- 
        No�l K�the

Reply via email to