[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] use stderr when prompting for username

From: Vladimir Prus <ghost_at_cs.msu.su>
Date: 2002-12-27 17:57:52 CET

Greg Hudson wrote:
> On Fri, 2002-12-27 at 03:08, Vladimir Prus wrote:
>
>>>I think the prompt should be printed to the terminal (i.e., /dev/tty),
>>>not stderr, when possible.
>>
>>Is it possible to print anything to /dev/tty portably? Where that output would
>>go on windows? And I'm not sure platform dependencies are a good thing.
>
>
> Well, we should be consistent with password prompts, which (as I
> understand it) already go to /dev/tty on Unix.

Looking at apr_password_get implementation, I see that it output to
/dev/tty only if HAVE_GETPASS is enabled, and system getpass uses
/dev/tty. Alternative apr implementations use stderr...

> If this means adding
> functionality to APR, then we should do so.

I'm not sure this should be done.
Futher, I doubt that anybody will place this task high in this priority list.
Therefore, changing stdout to stderr is all I'd like for now. It is certainly
better than the current behaviour.

- Volodya

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 27 17:57:50 2002

This is an archived mail posted to the Subversion Dev mailing list.