[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug header argumednt :file does not produce a file or a link to
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug header argumednt :file does not produce a file or a link to the file |
Date: |
Fri, 23 Aug 2019 10:15:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Hello,
Charles Millar via Emacs-orgmode <address@hidden> 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