[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 7 Jun 2011 02:11:59 +0300

Peter Samuelson wrote on Mon, Jun 06, 2011 at 16:25:01 -0500:
>
> [Daniel Klíma]
> > I tested it and same result. However I found something relevant in MSDN library:
> > http://msdn.microsoft.com/en-us/library/7x2hy4cx.aspx (Console and Port I/O)
>
> Thanks! I still believe we should do our prompting on the console,
> instead of stdin/stderr - especially stdin should be free for use by
> 'svnadmin load', 'svn patch' and the like. Does anyone here still
> think we should support the case of trying to 'drive' the interactive
> prompts in command-line programs, programmatically? AFAIK, we've never
> officially supported that sort of thing (especially password prompts),
> and I don't see a need.
>

I don't know whether we 'supported' it or not, but the ASF Infrastructure
team uses internally a tool that programmatically answers svn(1)
password prompts.

(but for that use case, I believe we will be okay regardless of whether
the password prompt reads from stdin or from the controlling terminal)

> I'll come up with a patch using the Win32 functions from that article,
> when I find the time, which probably won't be today.
>
Received on 2011-06-07 01:12:42 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.