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

Re: subversion reads from stdin even without tty and breaks

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: Mon, 19 May 2008 17:41:03 -0400

On Mon, 2008-05-19 at 17:36 -0400, Karl Fogel wrote:
> Eric Gillespie <epg_at_pretzelnet.org> writes:
> > isatty returns 1 (true) for Emacs shell buffers. If it didn't,
> > the fault would lie with Emacs; isatty is the standard Unix way
> > to ask "is there a user here, or am I being automated?".
>
> Ah, thanks. I was never clear on that point before.

Counterexample:

ghudson_at_error-messages:~$ ssh equal-rites.mit.edu sh -c 'cat >/tmp/out' </tmp/in
The authenticity of host 'equal-rites.mit.edu (18.18.1.59)' can't be established.
RSA key fingerprint is f0:f6:1c:65:fd:08:87:b0:d6:42:96:8f:86:f9:c8:a9.
Are you sure you want to continue connecting (yes/no)? yes

Oh, but the key here is that Subversion should be reading from /dev/tty
when it wants interactive user input, not stdin. I think. If we're not
doing that, then we have an issue.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-05-19 23:41:27 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.