Hello,

Charles Millar via Emacs-orgmode <emacs-orgmode@gnu.org> writes:

> #+begin_src sh :file test.rec
> cat << EOF
> # -*- mode: rec -*-
>
> %rec: somerecord
>
> Account: something
> Amount: 0.00
>
> #### end of file
> EOF
>
> #+end_src
>
> I expect that when I execute the above code block that
>
>       1. An external file test.rec is produced with contents
>
>       # -*- mode: rec -*-
>
>       %rec: somerecord
>
>       Account: something
>       Amount: 0.00
>
>       #### end of file
>
>   and
>
>       2. A link to that file is placed below the source code block
>
> Instead all I get is a table and no external file is created

You probably need to specify that the output is a file, which is not the
default for "sh" language. You may want to add ":results file" to the
header of the source block.

Regards,

-- 
Nicolas Goaziou

Reply via email to