[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 'echo' bash instructions produce a table
From: |
Ihor Radchenko |
Subject: |
Re: 2 'echo' bash instructions produce a table |
Date: |
Mon, 07 Nov 2022 02:31:59 +0000 |
Alain.Cochard@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>