From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: Bug?? #+begin_src sh :file Date: Sat, 16 Sep 2017 15:46:32 +0200 Message-ID: <59BD2B38.3090409@free.fr> References: <495e460e-4d4c-9468-64cd-6f1cb37dc7ad@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtDQa-0008Tt-Gf for emacs-orgmode@gnu.org; Sat, 16 Sep 2017 09:46:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtDQZ-0007sy-Eg for emacs-orgmode@gnu.org; Sat, 16 Sep 2017 09:46:36 -0400 Received: from smtp2-g21.free.fr ([2a01:e0c:1:1599::11]:12138) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtDQZ-0007sO-8n for emacs-orgmode@gnu.org; Sat, 16 Sep 2017 09:46:35 -0400 Received: from [IPv6:2a01:e35:2e21:def0:351e:772c:a55d:35db] (unknown [IPv6:2a01:e35:2e21:def0:351e:772c:a55d:35db]) by smtp2-g21.free.fr (Postfix) with ESMTP id A0F9F200373 for ; Sat, 16 Sep 2017 15:46:32 +0200 (CEST) In-Reply-To: <495e460e-4d4c-9468-64cd-6f1cb37dc7ad@verizon.net> 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 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