From: "Eric Schulte" <schulte.eric@gmail.com>
To: Michael Gauland <mikelygee@no8wireless.co.nz>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel-sh and Microsoft Windows
Date: Sun, 07 Feb 2010 09:41:20 -0700 [thread overview]
Message-ID: <87y6j5c827.fsf@gmail.com> (raw)
In-Reply-To: <20100207.081058.49077221.mikelygee@no8wireless.co.nz> (Michael Gauland's message of "Sun, 07 Feb 2010 08:10:58 +1300 (NZDT)")
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
next prev parent reply other threads:[~2010-02-07 16:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-06 19:10 org-babel-sh and Microsoft Windows Michael Gauland
2010-02-07 16:41 ` Eric Schulte [this message]
2010-02-07 17:55 ` Michael Gauland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y6j5c827.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mikelygee@no8wireless.co.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).