From: Charles Millar via Emacs-orgmode <emacs-orgmode@gnu.org>
To: emacs-orgmode@gnu.org
Subject: Re: Bug header argumednt :file does not produce a file or a link to the file
Date: Fri, 23 Aug 2019 09:37:31 -0400 [thread overview]
Message-ID: <5e24a54b-3821-50be-1dfe-36601fd2d5ad@verizon.net> (raw)
In-Reply-To: <87sgpsz48y.fsf@nicolasgoaziou.fr>
On 8/23/19 4:15 AM, Nicolas Goaziou wrote:
> 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,
>
Thank you, Nicolas. That solved it.
Now a "just curious," comment and question:
I had a few files that used the ECM source code block, just many more
entries in each. The last time that I evaluated any of them was last
October and it produced the results I expected, i.e. I did not specify
":results file"
So, up until October was I just lucky or did something change in Org
that affected the sh language?
Regards,
Charlie Millar
next prev parent reply other threads:[~2019-08-23 13:37 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
2019-08-23 13:37 ` Charles Millar via Emacs-orgmode [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5e24a54b-3821-50be-1dfe-36601fd2d5ad@verizon.net \
--to=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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.