Hi Mike, I have no access to a windows machine, so it is not surprising that the windows shell doesn't work as expected.
All of the external Babel calls do use built in Emacs functions for calling external programs all of which work cross platform (which is why these other languages work on Windows despite no explicit Windows testing or development), however I believe that the shell is simply too OS-specific to expect things to "just work" as in the other languages. If you do find ways to improve ob-sh.el for windows I would be happy to fold such changes in. Thanks -- Eric Michael Gauland <mikely...@gmail.com> writes: > I'm having trouble executing a shell script under Microsoft Windows using > org-babel. When I evaluate this: > > #+begin_src sh :results output > echo Hello > #+end_src > > I get this: > #+results: > : Microsoft Windows XP [Version 5.1.2600] > : (C) Copyright 1985-2001 Microsoft Corp. > : > : c:\home\mike\notes-hg>More? > > It looks like the shell is invoked as expeced, but the 'echo' command does not > appear to be executed. I've used babel to execute shell script under > Linux, and > have used other babel languages (ditaa, plantuml, dot) under Windows, but this > is the first time I've tried the DOS shell. > > Am I doing something obviously wrong, or is it time to fire up the debugger? > > Any advice would be appreciated. > > Regards, > 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