* org-babel-sh and Microsoft Windows
@ 2010-02-06 19:10 Michael Gauland
2010-02-07 16:41 ` Eric Schulte
0 siblings, 1 reply; 3+ messages in thread
From: Michael Gauland @ 2010-02-06 19:10 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: org-babel-sh and Microsoft Windows
2010-02-06 19:10 org-babel-sh and Microsoft Windows Michael Gauland
@ 2010-02-07 16:41 ` Eric Schulte
2010-02-07 17:55 ` Michael Gauland
0 siblings, 1 reply; 3+ messages in thread
From: Eric Schulte @ 2010-02-07 16:41 UTC (permalink / raw)
To: Michael Gauland; +Cc: emacs-orgmode
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 <mikelygee@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-07 17:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-06 19:10 org-babel-sh and Microsoft Windows Michael Gauland
2010-02-07 16:41 ` Eric Schulte
2010-02-07 17:55 ` Michael Gauland
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).