Re: [org-babel] String interpolation using shell

2020-01-09 Thread Mike Gauland
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

[org-babel] String interpolation using shell

2020-01-09 Thread sergio ruiz
Hey, all. I am trying to set a string at the head of the file and use it in different places in the file. Everything works correctly for somethign like ruby, but I am not sure how do do this with a shell command. Just sets the string to the url #+NAME: url_name #+BEGIN_SRC ruby