emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mike Gauland <mikelygee@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [org-babel] String interpolation using shell
Date: Fri, 10 Jan 2020 09:31:18 +1300	[thread overview]
Message-ID: <bd2aecbc-cfcd-2a33-80b7-38e05b5a25fb@gmail.com> (raw)
In-Reply-To: <203196E9-AE09-4760-AF38-3D08D4622935@gmail.com>

On 10/01/2020 5:56 am, sergio ruiz wrote:
> #+BEGIN_SRC shell :var url_input=url_name
>   curl url_input
> ^^ 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

      reply	other threads:[~2020-01-09 20:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-09 16:56 [org-babel] String interpolation using shell sergio ruiz
2020-01-09 20:31 ` Mike Gauland [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd2aecbc-cfcd-2a33-80b7-38e05b5a25fb@gmail.com \
    --to=mikelygee@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).