From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Redirecting standard output Date: Thu, 21 Apr 2011 15:15:20 -0400 Message-ID: References: <83oc402ky4.fsf@gnu.org> <8362q73dap.fsf@gnu.org> <876FF1E0-A9BB-4804-845C-46947AC085EE@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1303413336 20916 80.91.229.12 (21 Apr 2011 19:15:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 19:15:36 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: Jan =?utf-8?Q?Dj=C3=A4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 21 21:15:31 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCzLe-0007sV-Tm for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 21:15:31 +0200 Original-Received: from localhost ([::1]:37846 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCzLe-0002tH-Dz for ged-emacs-devel@m.gmane.org; Thu, 21 Apr 2011 15:15:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCzLZ-0002sy-Bk for emacs-devel@gnu.org; Thu, 21 Apr 2011 15:15:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCzLV-0002NT-1d for emacs-devel@gnu.org; Thu, 21 Apr 2011 15:15:25 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:41869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCzLU-0002NP-Uo for emacs-devel@gnu.org; Thu, 21 Apr 2011 15:15:20 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QCzLU-0001st-5Q; Thu, 21 Apr 2011 15:15:20 -0400 In-reply-to: <876FF1E0-A9BB-4804-845C-46947AC085EE@swipnet.se> (message from Jan =?utf-8?Q?Dj=C3=A4rv?= on Thu, 21 Apr 2011 19:05:39 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138623 Archived-At: > Cc: Lars Magne Ingebrigtsen , > "emacs-devel@gnu.org" > From: Jan Djärv > Date: Thu, 21 Apr 2011 19:05:39 +0200 > > > On Posix systems, we use a pipe to read from subprocess's STDOUT. You > > cannot do the same with STDERR, but you can redirect STDERR to a > > temporary file, and then read it when the subprocess exits. > > That is news to me. I've redirected STDERR to a pipe many times in other programs. Why can't it be done in Emacs? Maybe I'm missing something, but the call to `pipe' produces only 2 file descriptors on each end. So you can have either stdout or stderr of the subprocess, or both of them together, but not both of them separately.