Hi Mike,

The command used by org-babel-sh is now configurable through the
`org-babel-sh-command' variable so you should be able to set it in your
initialization using a line like the following

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

Best -- Eric

,----[org-babel-sh-command]
| org-babel-sh-command is a variable defined in `org-babel-sh.el'.
| Its value is "sh"
| 
|   This variable is potentially risky when used as a file local variable.
| 
| Documentation:
| Command used to invoke a shell.  This will be passed to
|   `shell-command-on-region'
`----

Michael Gauland <mikely...@no8wireless.co.nz> writes:

> I tried using org-babel-sh at work, where I run emacs under Microsoft Windows,
> but only received an oddly-formatted message about (quote sh) not being
> recognised as a command. After mucking around with org-babel-sh.el, I modified
> the call to shell-command-on-region, changing the hard-coded "sh" to (as I
> recall) "cmd /k"). This looks promising, but I wonder if there are any other
> changes I'll need to make. Also, would it be better to adapt org-babel-sh to
> handle Microsoft's "shell", or to implement a new org-babel "language"?
>
> Thanks for your advice,
> Mike
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to