[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Use stderr instead of stdout for --ask-password

From: Giuseppe Scrivano
Subject: Re: [Bug-wget] Use stderr instead of stdout for --ask-password
Date: Wed, 23 Feb 2011 17:59:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Micah Cowan <address@hidden> writes:

> On 02/23/2011 01:23 AM, Giuseppe Scrivano wrote:
>> Hello Gilles,
>> thanks for your patch.  I am not sure it is a good idea to use stderr
>> to prompt a message to the user.  I would just inhibit the message when
>> -O- is used.
> Personally, I agree with Gilles; in every single instance other than
> here, we always write information meant for the user to stderr (I
> believe for the reason he cites: so as not to interfere with the output
> in the case of -O-). I'd say we should either blindly write to stderr in
> all cases, or else consider specifically finding the terminal and
> writing to that (ttyname?)

hm.. in functions like print_usage (main.c), I see we differentiate
between an error message and an usage string.  When the user specifies
--ask-password then the password prompt is a desired behaviour rather
than an error.

In what cases do we use stderr for something different than an error


reply via email to

[Prev in Thread] Current Thread [Next in Thread]