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

Re: [RFC] [PATCH] Use console, not stdin/stderr, for prompting

From: Mark Phippard <markphip_at_gmail.com>
Date: Sat, 4 Jun 2011 16:24:38 -0400

On Fri, Jun 3, 2011 at 7:57 PM, Peter Samuelson <peter_at_p12n.org> wrote:
> [Peter Samuelson]
>> Hrrrmph.  I think libsvn_subr/prompt.c could use a large dose of
>> "/dev/tty".  Right now it mostly uses stderr and stdin, but for
>> password prompts it uses /dev/tty on modern Unix ... indirectly,
>> by calling apr_password_get() which calls getpass(), an OS library
>> function.
> Concept patch - not tested.  Does this seem reasonable?  I'd really
> prefer to do all our prompting on the terminal.  The fact that this
> frees up stdin for things like 'svn patch' and 'svnrdump load' is only
> one reason.

Would this cause issues for apps that drive the command line
programmatically without a console? For example, a Java web app that
does some SVN commands from within the app server?

Mark Phippard
Received on 2011-06-04 22:25:10 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.