From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: vc-annotate not displaying all lines Date: Fri, 10 Dec 2004 21:07:37 GMT Message-ID: References: <87hdmv7pz9.fsf@dod.no> <877jnqehar.fsf@dod.no> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1102712709 10107 80.91.229.6 (10 Dec 2004 21:05:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2004 21:05:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 22:04:59 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ccrwh-0004PH-00 for ; Fri, 10 Dec 2004 22:04:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Ccs6d-00083Y-Pg for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2004 16:15:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:wMVwYMQdMUIWpZP/KjY7XmcrbvA= Original-Lines: 22 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1102712857 132.204.24.84 (Fri, 10 Dec 2004 16:07:37 EST) Original-NNTP-Posting-Date: Fri, 10 Dec 2004 16:07:37 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:127235 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22665 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22665 >> (ssh "$@" 2>&1 1>&3 | cat) 3>&1 1>&2 > I'm trying to figure out what it does. Lesse... ssh is run in a > subshell. Then stdout is gated to a different file descriptor, and > stderr is gated to the file descriptor used by stdout. > Then the stderr stuff is sent through a pipe and into cat. Outside > the subshell stdout and stderr are routed back to their standard file > descriptors. > I guess the effect is to delay stderr a bit, wrt. to stdout...? No, the effect is to separate the stderr of ssh from the stderr of cvs, and then link them via `cat' to "hide" the difference. SSH puts his stderr in non-blocking mode whereas CVS doesn't work reliably if his stderr is non-blocking (and even worse if his stdout is non-blocking which would happen if the programm running CVS (e.g. Emacs) redirects stdout and stderr of CVS to the same file descriptor). Stefan