emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Redirecting stderr to stdout with babel/shell


From: Achim Gratz
Subject: Re: [O] Redirecting stderr to stdout with babel/shell
Date: Sun, 11 Jan 2015 19:58:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]