From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Babel & DOS Date: Tue, 16 Nov 2010 10:09:47 -0700 Message-ID: <87fwv1yz38.fsf@gmail.com> References: <20101115203035.GA580@atasdev-mg> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=35128 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIP2Z-0000fZ-O8 for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 12:10:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIP2Y-0004pz-04 for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 12:09:54 -0500 Received: from mail-gw0-f41.google.com ([74.125.83.41]:32773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIP2X-0004pn-Tw for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 12:09:53 -0500 Received: by gwj16 with SMTP id 16so578581gwj.0 for ; Tue, 16 Nov 2010 09:09:53 -0800 (PST) In-Reply-To: <20101115203035.GA580@atasdev-mg> (Michael Gauland's message of "Tue, 16 Nov 2010 09:30:35 +1300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Gauland Cc: emacs-orgmode@gnu.org 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 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