alain.coch...@unistra.fr writes:

>    #+begin_src bash
>    echo "foo"
>    echo "bar"
>    #+end_src
>
> Typing 'C-c C-c' produces
>
>    #+RESULTS:
>    | foo |
>    | bar |
>
> By contrast, with only 'echo "foo"', it produces what I expect:
>
>    #+RESULTS:
>    : foo

If you want to force string output, use :results output.

By default, ob-shell tries to guess the output type.
In the case of two commands returning output, the guess is yielding the
table. In the case of a single command, the guess is yielding a single
string output.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to