The org manual specifies in the this link: https://orgmode.org/manual/Languages.html#Languages the language it supports (including shell). It mentions this:
Additional documentation for some languages is at https://orgmode.org/worg/org-contrib/babel/languages.html
The above link points further this page: https://orgmode.org/worg/org-contrib/babel/languages/index.html
But unfortunately it doesn't have any documentation for the shell
language.
What I'm looking is to see if I can change the working directory where it is executed. Something like this:
#+begin_src sh working-dir:/home/some_dir #working-dir doesn't work obviously.
ls
#+end_src
But I'm not able to find documentation on where to find the header arguments for a specific language.
cd
from the first line within the code block? Indeed I did not find much documentation for babel shell. Of course you can check outob-shell.el
.:dir
work? I believe it should work even for remote directories. And that's a general mechanism, not restricted toshell
- so it probably is documented in the generic header options section, not a language-specific one.