unofficial mirror of
 help / color / mirror / Atom feed
* Variables not set during tangle of sh code (org 9.5)
@ 2020-11-18 11:34 Robby Kiggen | Essential IT
  0 siblings, 0 replies; only message in thread
From: Robby Kiggen | Essential IT @ 2020-11-18 11:34 UTC (permalink / raw)
  To: emacs-orgmode


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
echo $str

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)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-18 13:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18 11:34 Variables not set during tangle of sh code (org 9.5) Robby Kiggen | Essential IT

unofficial mirror of

This inbox may be cloned and mirrored by anyone:

	git clone --mirror 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/ \
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:

AGPL code for this site: git clone