I'm trying to write some shell code blocks in a session, but it seems no session has been started, and all the code blocks are run independently. Here is a simple example:
* org-babel :PROPERTIES: :header-args:shell :session babel :END: #+begin_src sh pwd #+end_src #+RESULTS: : /Users/olivier/git/mybrain #+begin_src sh cd .. pwd #+end_src #+RESULTS: : /Users/olivier/git #+begin_src sh pwd #+end_src #+RESULTS: : /Users/olivier/git/mybrain
As can be see from above, I changed the working directory to the parent folder in the second block, but it went back to the original folder in the next block.
But I do know the session is not working, because there is a background buffer
babel opened in the background, but it's an empty buffer with
:no process written at the bottom.
Can someone tell me what's going on and how to fix this?