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

2017-09-16 Thread Charles Millar
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

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

2017-09-16 Thread Grant Rettke
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/)

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

2017-09-16 Thread Achim Gratz
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,

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

2017-09-16 Thread Thierry Banel
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