From: Kyle Meyer <kyle@kyleam.com>
To: Robby Kiggen | Essential IT <robby.kiggen@essential-it.be>
Cc: emacs-orgmode@gnu.org
Subject: Re: Variables not set during tangle of sh code (org 9.5)
Date: Sun, 13 Dec 2020 06:32:16 GMT [thread overview]
Message-ID: <87eejuusgh.fsf@kyleam.com> (raw)
In-Reply-To: <186354732.20201118123440@essential-it.be>
Robby Kiggen | Essential IT writes:
> Hi,
>
> in OrgMode 9.5 it seems that the variables during the tangling of sh
> aren't set/initialized.
>
> For example the block below:
> #+begin_src sh :var str="Hello World" :tangle helloworld.sh
> echo $str
> #+end_src
>
> Gets tangled into:
> echo $str
>
> Which means the str="Hello World" line is missing.
My guess is that you haven't loaded ob-shell, as that's how I can
reproduce what you report. After (require 'ob-shell), I see
str='Hello World'
echo $str
prev parent reply other threads:[~2020-12-13 6:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 11:34 Variables not set during tangle of sh code (org 9.5) Robby Kiggen | Essential IT
2020-12-13 6:32 ` Kyle Meyer [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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=87eejuusgh.fsf@kyleam.com \
--to=kyle@kyleam.com \
--cc=emacs-orgmode@gnu.org \
--cc=robby.kiggen@essential-it.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).