emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Referring to an Org Babel variable in the invocation arguments to another Org Babel code block
@ 2016-12-27 13:02 Zack Piper
  2016-12-27 17:56 ` Charles C. Berry
  0 siblings, 1 reply; 7+ messages in thread
From: Zack Piper @ 2016-12-27 13:02 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

Hopefully the below can explain better:

    #+NAME: abc
    #+BEGIN_SRC shell :noweb yes :var a="b" :results output
    echo <<EOF
    $a
    1
    EOF
    #+END_SRC

    #+NAME: def
    #+BEGIN_SRC shell :noweb yes :var c="d" :results output
    echo <<EOF
    <<abc(c)>>
    1
    EOF
    #+END_SRC

    #+RESULTS: def
    : 


Pressing `C-c C-c' on the second block returns:


org-babel-ref-resolve: Reference ‘c’ not found in this buffer


Org version: 9.0.3


Thanks!

-- 
Zack Piper          System administrator
        https://apertron.net            

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-01-01 18:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-27 13:02 Referring to an Org Babel variable in the invocation arguments to another Org Babel code block Zack Piper
2016-12-27 17:56 ` Charles C. Berry
2016-12-27 18:17   ` Zack Piper
2016-12-28 23:36     ` Zack Piper
2016-12-29 15:49     ` Nicolas Goaziou
2017-01-01 16:15       ` Zack Piper
2017-01-01 18:51         ` Charles C. Berry

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).