From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Charles Millar via Emacs-orgmode <emacs-orgmode@gnu.org>
Cc: Charles Millar <millarc@verizon.net>
Subject: Re: Bug header argumednt :file does not produce a file or a link to the file
Date: Fri, 23 Aug 2019 10:15:57 +0200 [thread overview]
Message-ID: <87sgpsz48y.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <6d1c9dbe-d0ec-7b7b-0ef9-1aaef1d430d0@verizon.net> (Charles Millar via Emacs-orgmode's message of "Thu, 22 Aug 2019 21:47:58 -0400")
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
next prev parent reply other threads:[~2019-08-23 8:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-23 1:47 Bug header argumednt :file does not produce a file or a link to the file Charles Millar via Emacs-orgmode
2019-08-23 8:15 ` Nicolas Goaziou [this message]
2019-08-23 13:37 ` Charles Millar via Emacs-orgmode
2019-08-23 21:43 ` Nicolas Goaziou
-- strict thread matches above, loose matches on Subject: below --
2019-08-24 14:02 Charles Millar via Emacs-orgmode
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgpsz48y.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=millarc@verizon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).