0

I wish to run shell code in org sh code block as below:

#+BEGIN_SRC sh :results output
dir c:\
#+END_SRC

#+RESULTS:
: c:\>More? 

The output is not as expected!

BTW, I have add below line in my .emacs file:

(setq org-confirm-babel-evaluate nil)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((python . t)
   (C . t)
   (sh . t)
   (dot . t)
   (latex . t)
   (plantuml . t)   
   (java . t)      
   (ruby   . t)))

(setq org-babel-sh-command "cmd /k")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.