Hi,
Is there a way to call a source-block with (positional) arguments, like
one would do on the command line?
I want to include some shell scripts in a paper and would prefer not
having to introduce some kind of artificial variables.
So I could just write my scripts inline, like
#+srcname: script.sh
#+begin_src sh
#!/bin/sh
echo $0: $@
#+end_src
and demonstrate their output by calling them
#+call: script.sh("arg1", "arg2") :results output
would produce something like
#+results:
: script.sh: arg1 arg2
Can this be done?
PS:
Is there a way to set «:results output» for the whole file?
thanks,
--
Philipp Haselwarter