On 09/16/17 14:55, Grant Rettke wrote:
On Sat, Sep 16, 2017 at 9:09 AM, Charles Millar wrote:
The following ECL is based on Grant Rettke's Org Scraps -
Correction: They are Eric Schulte's (https://www.cs.unm.edu/~eschulte/)
Thanks to Thierry and Achim for the correction and explanation and
On Sat, Sep 16, 2017 at 9:09 AM, Charles Millar wrote:
> The following ECL is based on Grant Rettke's Org Scraps -
Correction: They are Eric Schulte's (https://www.cs.unm.edu/~eschulte/)
Charles Millar writes:
> A bug? Or what am I missing?
You are creating a file that Org is supposed to fill with the output
from your script. Your script doesn't produce output, but instead
writes to the same file. When the script returns, Org dutifully
truncates the file to nothing.
Regards,
A
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
#+
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.