From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-babel-sh and Microsoft Windows Date: Sun, 07 Feb 2010 09:41:20 -0700 Message-ID: <87y6j5c827.fsf@gmail.com> References: <20100207.081058.49077221.mikelygee@no8wireless.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeACO-00077h-7M for emacs-orgmode@gnu.org; Sun, 07 Feb 2010 11:41:28 -0500 Received: from [199.232.76.173] (port=46352 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeACM-00077Z-T0 for emacs-orgmode@gnu.org; Sun, 07 Feb 2010 11:41:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeACM-0002cR-09 for emacs-orgmode@gnu.org; Sun, 07 Feb 2010 11:41:26 -0500 Received: from mail-pz0-f183.google.com ([209.85.222.183]:64094) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeACL-0002c2-Hx for emacs-orgmode@gnu.org; Sun, 07 Feb 2010 11:41:25 -0500 Received: by pzk13 with SMTP id 13so3315851pzk.24 for ; Sun, 07 Feb 2010 08:41:24 -0800 (PST) In-Reply-To: <20100207.081058.49077221.mikelygee@no8wireless.co.nz> (Michael Gauland's message of "Sun, 07 Feb 2010 08:10:58 +1300 (NZDT)") 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, 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 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