From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug header argumednt :file does not produce a file or a link to the file Date: Fri, 23 Aug 2019 10:15:57 +0200 Message-ID: <87sgpsz48y.fsf@nicolasgoaziou.fr> References: <6d1c9dbe-d0ec-7b7b-0ef9-1aaef1d430d0@verizon.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41842) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i14js-000760-9m for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 04:16:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i14jr-0003Rw-0n for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 04:16:03 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:42999) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i14jq-0003Qv-Re for emacs-orgmode@gnu.org; Fri, 23 Aug 2019 04:16:02 -0400 In-Reply-To: <6d1c9dbe-d0ec-7b7b-0ef9-1aaef1d430d0@verizon.net> (Charles Millar via Emacs-orgmode's message of "Thu, 22 Aug 2019 21:47:58 -0400") 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: Charles Millar via Emacs-orgmode Cc: Charles Millar 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, -- Nicolas Goaziou