[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Redirecting stderr to stdout with babel/shell
From: |
Karl Voit |
Subject: |
Re: [O] Redirecting stderr to stdout with babel/shell |
Date: |
Wed, 21 Jan 2015 17:52:46 +0100 |
User-agent: |
slrn/pre1.0.0-18 (Linux) |
* Achim Gratz <address@hidden> 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
Re: [O] Redirecting stderr to stdout with babel/shell, Achim Gratz, 2015/01/11