emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [org-babel] String interpolation using shell


From: Mike Gauland
Subject: Re: [org-babel] String interpolation using shell
Date: Fri, 10 Jan 2020 09:31:18 +1300
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]