unofficial mirror of emacs-orgmode@gnu.org
 help / color / mirror / Atom feed
From: Robby Kiggen | Essential IT <robby.kiggen@essential-it.be>
To: emacs-orgmode@gnu.org
Subject: Variables not set during tangle of sh code (org 9.5)
Date: Wed, 18 Nov 2020 12:34:40 +0100
Message-ID: <186354732.20201118123440@essential-it.be> (raw)

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.

I tried this with an emacs block and that seemed to be working.

The following block:

#+begin_src emacs-lisp :var data1=8 data2=16 :tangle test.lsp
(message "data1:%S, data2:%S" data1 data2)
#+end_src

Was tangled to:
(let ((data1 '8)
      (data2 '16))
(message "data1:%S, data2:%S" data1 data2)
)

This leads me to believe that there is a bug in ob-shell.el.


-- 
Best regards,
Robby Kiggen | Essential IT



             reply	other threads:[~2020-11-18 13:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18 11:34 Robby Kiggen | Essential IT [this message]
2020-12-13  6:32 ` Kyle Meyer

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=186354732.20201118123440@essential-it.be \
    --to=robby.kiggen@essential-it.be \
    --cc=emacs-orgmode@gnu.org \
    /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

unofficial mirror of emacs-orgmode@gnu.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/orgmode/0 orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ https://yhetil.org/orgmode \
		emacs-orgmode@gnu.org
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git