emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Variables not set during tangle of sh code (org 9.5)


From: Robby Kiggen | Essential IT
Subject: Variables not set during tangle of sh code (org 9.5)
Date: Wed, 18 Nov 2020 12:34:40 +0100

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 via email to

[Prev in Thread] Current Thread [Next in Thread]