svn client with ssh: data loss in output when both stdout and stderr are redirected to a pipe
From: Vincent Lefevre <vincent-svn_at_vinc17.net>
Date: Mon, 30 May 2011 15:30:25 +0200
I've found the following bug with Subversion 1.6.16:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627025
The problem is: With the svn+ssh scheme, a ssh process is started and
"svn log 2>&1 | less" on a (big enough) svn+ssh working copy fails to
svn: Write error: Resource temporarily unavailable
I think the above test should be sufficient, but just in case, I've
To reproduce the bug:
./bigrep
and hit the [End] key. One generally gets:
[...]
lines 14957-15015/15015 (END)
Also:
tomate% ./svn2log bigrep-wc 2>&1 | wc
As suggested by Niko Tyni:
Possibly subversion should make a new descriptor for the ssh stderr
You can also see what cvs did, because it had the same problem.
-- Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon) Received on 2011-05-30 15:30:58 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.