Re: [O] Can I get the results of shell code block when exit code is non-zero?

2019-08-29 Thread Michaƫl Cadilhac
Hi there, This is the expected behavior, implemented in `org-babel-eval`. (By the way, the docline of `org-babel-sh-evaluate` seems to talk about a different function.) As a workaround, you could define a new shell that always returns 0: (push "0bash" org-babel-shell-names)

[O] Can I get the results of shell code block when exit code is non-zero?

2019-08-29 Thread Marcin Borkowski
Hi all, apparently when the exit code of the last command in a shell code block is not zero, I do not get the results. This doesn't seem to be documented in the manual (though I might be missing something). Check this: #+begin_src bash :results verbatim echo hello world exit 0 #+end_src