From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Redirecting stderr to stdout with babel/shell Date: Sun, 11 Jan 2015 19:58:12 +0100 Message-ID: <87h9vxw3ej.fsf@Rainer.invalid> References: <2015-01-01T17-23-41@devnull.Karl-Voit.at> <2015-01-11T11-53-02@devnull.Karl-Voit.at> <2015-01-11T19-20-47@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YANiV-0007hP-Ow for emacs-orgmode@gnu.org; Sun, 11 Jan 2015 13:58:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YANiS-0006Jy-Dz for emacs-orgmode@gnu.org; Sun, 11 Jan 2015 13:58:27 -0500 Received: from plane.gmane.org ([80.91.229.3]:56125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YANiS-0006IH-7A for emacs-orgmode@gnu.org; Sun, 11 Jan 2015 13:58:24 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YANiQ-0000Fb-Rl for emacs-orgmode@gnu.org; Sun, 11 Jan 2015 19:58:22 +0100 Received: from p4ff1d697.dip0.t-ipconnect.de ([79.241.214.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Jan 2015 19:58:22 +0100 Received: from Stromeko by p4ff1d697.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Jan 2015 19:58:22 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Karl Voit writes: > However with an additional "echo" at the end: You need to understand what you're doing or at least copy the code exactly. The last line in my example is a colon ":" so that the shell exit code is always zero. If not, Babel will ignore the output since it interprets any non-zero exit code as failure. Since you've redirected STDERR to STDOUT the error buffer that would normally let you know what happened stays empty. The echo has the same effect, but produces a blank line you don't want. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs