From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: Bug?? #+begin_src sh :file Date: Sat, 16 Sep 2017 09:09:44 -0400 Message-ID: <495e460e-4d4c-9468-64cd-6f1cb37dc7ad@verizon.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------9D2FDD95994B27B627ED3AEB" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtCr1-0007Tn-5e for emacs-orgmode@gnu.org; Sat, 16 Sep 2017 09:09:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtCqy-0006pT-06 for emacs-orgmode@gnu.org; Sat, 16 Sep 2017 09:09:51 -0400 Received: from omr-a004e.mx.aol.com ([204.29.186.52]:53164) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtCqx-0006pC-RD for emacs-orgmode@gnu.org; Sat, 16 Sep 2017 09:09:47 -0400 Received: from mtaout-aag02.mx.aol.com (mtaout-aag02.mx.aol.com [172.26.126.78]) by omr-a004e.mx.aol.com (Outbound Mail Relay) with ESMTP id 287893800097 for ; Sat, 16 Sep 2017 09:09:47 -0400 (EDT) Received: from [10.0.0.2] (0x5b31302e302e302e325d [74.106.194.188]) by mtaout-aag02.mx.aol.com (MUA/Third Party Client Interface) with ESMTPA id AEF6E38000084 for ; Sat, 16 Sep 2017 09:09:45 -0400 (EDT) Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" This is a multi-part message in MIME format. --------------9D2FDD95994B27B627ED3AEB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 __ --------------9D2FDD95994B27B627ED3AEB Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

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
--------------9D2FDD95994B27B627ED3AEB--