[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [Babel] No output returned if just one command is failing
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] [Babel] No output returned if just one command is failing |
Date: |
Wed, 01 Dec 2010 07:29:10 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Seb,
I don't forsee adding partial results insertion both because
- it would add a good deal of complexity to the code to insert results
part-way through a run
- the current behavior of only inserting results on a fully successful
run is reasonable and is probably more obvious (at least to me) than
inserting partial results
Best -- Eric
Sébastien Vauban <address@hidden> writes:
> #+TITLE: Babel doesn't return output if one command fails
> #+DATE: 2010-12-01
> #+LANGUAGE: en_US
>
> * Abstract
>
> When just one command fails in Babel, then there is no shell output at all.
>
> * One command fails
>
> For example, the last command (=datee=) is not found:
>
> #+begin_src sh :var file=(buffer-file-name) :results output :exports both
> echo $(basename $file)
> datee
> #+end_src
>
> #+results:
>
> Result set is empty, while the =echo= command did work, and did produce
> output.
>
> * All commands are successful
>
> Only if all commands are successful, I see all results:
>
> #+begin_src sh :var file=(buffer-file-name) :results output :exports both
> echo $(basename $file)
> date
> #+end_src
>
> #+results:
> #+begin_example
> ecm-babel-one-error-no-results.txt
> Wed, Dec 01, 2010 10:21:09 AM
> #+end_example
>
>
> Best regards,
> Seb