all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Org-mode shell SRC block under Windows
Date: Fri, 04 Feb 2022 14:15:08 +0100	[thread overview]
Message-ID: <86a6f6u61v.fsf@duenenhof-wilhelm.de> (raw)
In-Reply-To: <83y22r2ja8.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Feb 2022 09:16:47 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
>> Date: Thu, 03 Feb 2022 21:37:25 +0100
>> 
>> Hello
>> 
>> I'd like to use an MSYS or MingW shell rather than the default shell
>> (com) for
>> 
>> #+begin_src sh
>> echo $SHELL
>> #+end_src
>
> See explicit-shell-file-name (assuming that Org heeds that variable).
> But beware: futzing with that variable might get you in trouble
> elsewhere!

Yeah it seems so.  That was the first idea I tried and it bit hard my
LaTeX exporting from org-mode. :-(

But I think it should be possible to specify a different shell only for
certain source blocks.  Please consider the customisation variable

   org-babel-shell-names => ("sh" "bash" "zsh" "fish" "csh" "ash" "dash"
   "ksh" "mksh" "posh")

it is possible to modify (amend?) the list of shells but I just can't
find where and how to "define" such a new "shell".

By the way

  #+begin_src shell
  echo $0
  #+end_src

seems to call MS com but

  #+begin_src sh
  echo $0
  #+end_src

an MSYS2 shell /usr/bin/sh...

> In general, I'd say people who publish such blocks that assume a Posix
> shell are to blame, not your Emacs setup.  I find such blocks
> frequently posted without a lot of thought, just because it "WFM".

Probably, I don't want to publish the blocks.  They are intended as a
mixture of documentation for myself and automated scripting for building
Emacs.

Thank you for your interest

  Dieter
-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany



  parent reply	other threads:[~2022-02-04 13:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-03 20:37 Org-mode shell SRC block under Windows H. Dieter Wilhelm
2022-02-03 21:30 ` H. Dieter Wilhelm
2022-02-03 22:13   ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 12:52     ` H. Dieter Wilhelm
2022-02-04 13:59       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04  7:16 ` Eli Zaretskii
2022-02-04  8:44   ` Qlisp for Quantum Computers (was: Re: Org-mode shell SRC block under Windows) Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04  9:14     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 10:05       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04  9:47     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 13:15   ` H. Dieter Wilhelm [this message]
2022-02-04 14:01     ` Org-mode shell SRC block under Windows Eli Zaretskii
2022-02-04 14:22       ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-04 20:22       ` H. Dieter Wilhelm

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86a6f6u61v.fsf@duenenhof-wilhelm.de \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.