From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Redirecting stderr to stdout with babel/shell Date: Wed, 21 Jan 2015 17:52:46 +0100 Message-ID: <2015-01-21T17-51-21@devnull.Karl-Voit.at> 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> <87h9vxw3ej.fsf@Rainer.invalid> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDyYq-00086j-T3 for emacs-orgmode@gnu.org; Wed, 21 Jan 2015 11:55:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDyYb-0008UJ-J1 for emacs-orgmode@gnu.org; Wed, 21 Jan 2015 11:55:20 -0500 Received: from plane.gmane.org ([80.91.229.3]:43505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDyYb-0008Sv-9m for emacs-orgmode@gnu.org; Wed, 21 Jan 2015 11:55:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YDyYa-0001Ym-3c for emacs-orgmode@gnu.org; Wed, 21 Jan 2015 17:55:04 +0100 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Jan 2015 17:55:04 +0100 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Jan 2015 17:55:04 +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 * Achim Gratz wrote: > 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. You're right. The only thing I did not know was the meaning of the colon. http://stackoverflow.com/a/3224910 did fix my ignorance :-) > 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. Yes, now everything makes sense to me. Thanks for your pointer! -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github