emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thierry Banel <tbanelwebmin@free.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Bug?? #+begin_src sh :file
Date: Sat, 16 Sep 2017 15:46:32 +0200	[thread overview]
Message-ID: <59BD2B38.3090409@free.fr> (raw)
In-Reply-To: <495e460e-4d4c-9468-64cd-6f1cb37dc7ad@verizon.net>

I get the expected result without the redirection:

#+begin_src sh :file this.txt
cat << EOF
1
2
3
EOF
#+end_src


On 16/09/2017 15:09, Charles Millar wrote:
>
> Hi,
>
> The following ECL is based on Grant Rettke's Org Scraps - 
> https://eschulte.github.io/org-scraps/scraps/2011-02-15-recutils.html
>
> #+begin_src sh :file this.txt
>
> cat << EOF > this.txt
>
> 1
> 2
> 3
>
> EOF
>
> #+end_src
>
> When I execute the code block the file "this.txt" is created and so is 
> a link, i.e.
>
> #+RESULTS:
> _file:this.txt
>
> _However, the file is empty. According to the documentation for :file 
> I expected the following in "this.txt"
>
> 1
> 2
> 3
>
> I tried :exports results but this.txt is still empty
>
> A bug? Or what am I missing?
>
> Charlie Millar

  reply	other threads:[~2017-09-16 13:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-16 13:09 Bug?? #+begin_src sh :file Charles Millar
2017-09-16 13:46 ` Thierry Banel [this message]
2017-09-16 16:59 ` Achim Gratz
2017-09-16 18:55 ` Grant Rettke
2017-09-17  0:28   ` Charles Millar

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=59BD2B38.3090409@free.fr \
    --to=tbanelwebmin@free.fr \
    --cc=emacs-orgmode@gnu.org \
    /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).