all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: vc-annotate not displaying all lines
Date: Fri, 10 Dec 2004 21:07:37 GMT	[thread overview]
Message-ID: <jwv4qitzx6h.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 877jnqehar.fsf@dod.no

>> (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

  reply	other threads:[~2004-12-10 21:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-09  9:58 vc-annotate not displaying all lines Steinar Bang
2004-12-10  3:35 ` Stefan Monnier
2004-12-10  7:36   ` Steinar Bang
2004-12-10 21:07     ` Stefan Monnier [this message]
2004-12-10 10:57   ` Steinar Bang
2004-12-10 21:08     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv4qitzx6h.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.