emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug?? #+begin_src sh :file


From: Thierry Banel
Subject: Re: [O] Bug?? #+begin_src sh :file
Date: Sat, 16 Sep 2017 15:46:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

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 via email to

[Prev in Thread] Current Thread [Next in Thread]