2

Give this file

:PROPERTIES:
:header-args:sh: :var A="this is a"
:END:

#+begin_src sh
echo ${A}
#+end_src

#+RESULTS:
: this is a

I would like to move the properties drawer to a separate file and import it into the main one. To do so I'm using the #SETUPFILE property suggested here, but this doesn't seem to work.

main.org

#+SETUPFILE: test.org

#+begin_src sh
echo ${A}
#+end_src

#+RESULTS:

test.org

:PROPERTIES:
:header-args:sh: :var A="this is a"
:END:

1 Answer 1

1

Try this in test.org instead:

#+PROPERTY: header-args:sh: :var A="this is a"
3
  • This is also not working for me
    – ezy
    Commented Apr 15, 2022 at 8:04
  • 1
    You may have found a bug. M-x org-submit-bug-report. Commented Apr 15, 2022 at 16:53
  • Removing the colon after sh seems to make it work. Found this example in the org info: "#+PROPERTY: header-args:R :session R".
    – Hubisan
    Commented May 11, 2023 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.