Gary Oberbrunner <ga...@oberbrunner.com> writes:

> Aha -- you have to use the :var syntax on the begin_src line, not the
> params-in-parens syntax on the name line.  Your version works:
>
> #+name: example-block
> #+begin_src sh :var input=""
>   echo "input is $input"
> #+end_src
>
> but this doesn't:
>
> #+name: example-block(input="")
> #+begin_src sh
>   echo "input is $input"
> #+end_src
>
> The doc seems to say it should work the same, in
> http://orgmode.org/manual/var.html (see "Alternate Argument Syntax").
>

At this point I'm not sure if the documentation or the code should be
amended.  I've personally never liked the args-in-block-name syntax, but
I don't recall if we formally decided to abandon it, or if it has simply
been broken in a recent commit.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte

Reply via email to