[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell SRC blocks under Windows

From: Michael Powe
Subject: Re: Shell SRC blocks under Windows
Date: Fri, 4 Feb 2022 16:45:15 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1

On 2/4/2022 15:15, H. Dieter Wilhelm wrote:

I installed the software distribution MSYS2 https://www.msys2.org/.  And
I'd like to call its various shells in org src blocks.  First I tried to
set explicit-shell-file-name but then my LaTeX exports don't work any

Is is it possible to extend org-mode's src blocks with
org-babel-shell-names to use either MSYS2 or MinGW shells (instead of
cmd.exe)?  Unfortunately ob-shell.el doesn't guide me further and I
can't find examples or the respective lisp files on how to define the
execution functions.

GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30,
cairo version 1.15.10) of 2022-01-14

Org mode version 9.4.6 (9.4.6-13-g4be129-elpaplus @

I'm not aware that I did anything special to get these results, except add `(shell . t)` to `org-babel-load-languages`. I mean, it is entirely possible that I did, in some other context. I think it's just a matter of having bash in your path.

#+begin_src sh :results verbatim

  $SHELL --version


: GNU bash, version 5.1.8(1)-release (x86_64-pc-msys)
: Copyright (C) 2020 Free Software Foundation, Inc.
: License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
: This is free software; you are free to change and redistribute it.
: There is NO WARRANTY, to the extent permitted by law.



"Do not neglect to do good, and to share what you have." - Hebrews 13:16a
Michael Powe
Naugatuck CT USA

reply via email to

[Prev in Thread] Current Thread [Next in Thread]