From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar via Emacs-orgmode Subject: Re: Bug header argumednt :file does not produce a file or a link to the file Date: Fri, 23 Aug 2019 09:37:31 -0400 Message-ID: <5e24a54b-3821-50be-1dfe-36601fd2d5ad@verizon.net> References: <6d1c9dbe-d0ec-7b7b-0ef9-1aaef1d430d0@verizon.net> <87sgpsz48y.fsf@nicolasgoaziou.fr> Reply-To: Charles Millar 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:470:142:3::10]:41680) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i19l3-0006IB-Qc for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 09:37:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i19l2-0003Jc-6J for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 09:37:37 -0400 Received: from sonic309-13.consmr.mail.bf2.yahoo.com ([74.6.129.123]:46286) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i19l1-0003II-D6 for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 09:37:35 -0400 In-Reply-To: <87sgpsz48y.fsf@nicolasgoaziou.fr> 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 On 8/23/19 4:15 AM, Nicolas Goaziou wrote: > Hello, > > Charles Millar via Emacs-orgmode writes: > >> #+begin_src sh :file test.rec >> cat << EOF >> # -*- mode: rec -*- >> >> %rec: somerecord >> >> Account: something >> Amount: 0.00 >> >> #### end of file >> EOF >> >> #+end_src >> >> I expect that when I execute the above code block that >> >> 1. An external file test.rec is produced with contents >> >> # -*- mode: rec -*- >> >> %rec: somerecord >> >> Account: something >> Amount: 0.00 >> >> #### end of file >> >> and >> >> 2. A link to that file is placed below the source code block >> >> Instead all I get is a table and no external file is created > > You probably need to specify that the output is a file, which is not the > default for "sh" language. You may want to add ":results file" to the > header of the source block. > > Regards, > Thank you, Nicolas. That solved it. Now a "just curious," comment and question: I had a few files that used the ECM source code block, just many more entries in each. The last time that I evaluated any of them was last October and it produced the results I expected, i.e. I did not specify ":results file" So, up until October was I just lucky or did something change in Org that affected the sh language? Regards, Charlie Millar