|
From: | Zack Piper |
Subject: | Re: [O] Referring to an Org Babel variable in the invocation arguments to another Org Babel code block |
Date: | Sun, 1 Jan 2017 16:15:22 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
Hi Nicolas, I tried "c", and it gives me: >>> c <<< as the result. I would like it to use the _variable_ "c", not the literal string. So the result should be ">>> test <<<" I've also cleaned up the Org I made (something went wrong when I pasted it before, it missed an #+END_SRC) Thanks! #+NAME: block-1 #+BEGIN_SRC shell :var x="X" echo ">>>" $x "<<<" #+END_SRC #+END_SRC #+BEGIN_SRC shell :var c="test" y=block-1("c") echo $y #+END_SRC #+RESULTS: : >>> c <<< On 12/29/2016 03:49 PM, Nicolas Goaziou
wrote:
#+NAME: block-1 #+BEGIN_SRC shell :var x="X" echo ">>>" $x "<<<" #+END_SRC #+BEGIN_SRC shell :var c="test" y=block-1(c) echo $y #+END_SRC #+RESULTS: : >>> $c <<< |
[Prev in Thread] | Current Thread | [Next in Thread] |