emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Referring to an Org Babel variable in the invocation arguments t


From: Charles C. Berry
Subject: Re: [O] Referring to an Org Babel variable in the invocation arguments to another Org Babel code block
Date: Tue, 27 Dec 2016 09:56:03 -0800
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

On Tue, 27 Dec 2016, Zack Piper wrote:

Hi all,

Hopefully the below can explain better:

[deleted]

This is a workable idiom. C-c C-c on the second block produces the
output shown.


#+NAME: block-1
#+BEGIN_SRC shell :var x="X" echo ">>>" $x "<<<"
#+END_SRC


#+BEGIN_SRC shell :var y=block-1("input to this block")
echo $y
#+END_SRC

#+RESULTS:
: >>> input to this block <<<

HTH,

Chuck




reply via email to

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