From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Gauland Subject: Re: [org-babel] String interpolation using shell Date: Fri, 10 Jan 2020 09:31:18 +1300 Message-ID: References: <203196E9-AE09-4760-AF38-3D08D4622935@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34828) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipeRI-000869-0a for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 15:29:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipeRH-0006G5-0I for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 15:29:55 -0500 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:34966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipeRG-00068W-KV for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 15:29:54 -0500 Received: by mail-pg1-x52b.google.com with SMTP id l24so3766539pgk.2 for ; Thu, 09 Jan 2020 12:29:53 -0800 (PST) Received: from [192.168.15.83] ([202.49.20.57]) by smtp.gmail.com with ESMTPSA id d2sm4329284pjv.18.2020.01.09.12.29.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jan 2020 12:29:52 -0800 (PST) In-Reply-To: <203196E9-AE09-4760-AF38-3D08D4622935@gmail.com> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org On 10/01/2020 5:56 am, sergio ruiz wrote: > #+BEGIN_SRC shell :var url_input=url_name >   curl url_input > #+END_SRC > > #+RESULTS: > > ^^ This doesn't work. It is trying to use "url_input" in the curl command. > You need  a $ in front of the name when referencing a variable in the shell: #+BEGIN_SRC shell :var url_input=url_name   curl $url_input #+END_SRC