From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "H. Dieter Wilhelm" Newsgroups: gmane.emacs.help Subject: Re: Org-mode shell SRC block under Windows Date: Fri, 04 Feb 2022 14:15:08 +0100 Message-ID: <86a6f6u61v.fsf@duenenhof-wilhelm.de> References: <83y22r2ja8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4962"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 14:24:46 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFyZx-00017z-T2 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 14:24:45 +0100 Original-Received: from localhost ([::1]:50168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFyZw-0003qv-FM for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 08:24:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFyQk-0006zX-3i for help-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:15:15 -0500 Original-Received: from mout.kundenserver.de ([212.227.17.24]:41137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFyQi-00048b-69; Fri, 04 Feb 2022 08:15:13 -0500 Original-Received: from ping ([92.116.179.235]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N0G5h-1mKAZe22SN-00xImq; Fri, 04 Feb 2022 14:15:09 +0100 In-Reply-To: <83y22r2ja8.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Feb 2022 09:16:47 +0200") X-Provags-ID: V03:K1:XlXjVX5sH7R1EyzgIb8blMST65h2fwNJIqvfa6sX+Kha/rgVw8i 7Kimr5Cz7jyn8naV8lPK9zwxcs+8m27zHB6yuQ5gxrqJj0sc91TcOPfpsJ08Y7hJ29vDpkB CVlkcj60Pf8LkCXUBZuQgqqz7ukASqncVsVw8zJrX49BstZxWu3fitEWsK7gS8iG7lGcrEj cocEc/URu2LWGlnORn5uw== X-UI-Out-Filterresults: notjunk:1;V03:K0:EpIBpcRBfZI=:Dc4TqXeIpyDG3wmr5zkYK4 fTPS1OTN6SXZePje3mRsl7TBNNZBcEp5Qut9GP0aqsMpomVw0vHBi1UiTiDBBERsyE0u/8qN6 K8r938ORUqeLs447jRfp6n3u0GrFgP1LxZH4jW8BSnWnCtWuHOrQ4bUx8dZHnCAcawzN15xNr oI3gQy69BxCCIp2ckjht98MpKgssQPrSibH2AAaCCV3TcObbCLSNeNDw7GuXgakJGwl/Q1fU/ mXuzlf4VBjlshz1MhUJpTBC1N3ir5YA697KMKN0XtqUIY2C1mJ+lONIZHbwvogQx+OpLsJwBS kFpZJMjdNB/owo6uX5IoRUXXNwN6Mj1lYYPj1LCi/XPqV3RoX7ZvdrCVrW5LbWJhMRxyMnCKA lz7HDhROdEBJSPuylrJEiz/36OjvydA3VROtVT8HH7OkX7441nrJ40lO7UWSrrzxhK1lnOve6 FcbEMcP+/KGaXn4lagmwIHjPmCC4f5AwrWMIDKoeOYylywWHpYPqW1NhrgjsbfDbLVi5PP6R0 jlUE6ubeBi6s6xQZX9HLx2XWdDbe9B+/iUdvTTHgRSIKyIAZAMefvp8d/zYl5QdJDomcoEWok ttVTRcFPP55DhXvfX9IejFd6rcGLNxP+jKSJ0+USy3ufTog97LDGp5+9wHkHuab++1uj2Jp8l nIcWJ3EEW4m9BgU/XL0g7O3U1hBKTquC3V+w+E239s2qWUqhUtfZM8SibgUgnkCQFJs4xXskX +sowTGv2FNc7GzlM Received-SPF: none client-ip=212.227.17.24; envelope-from=dieter@duenenhof-wilhelm.de; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135730 Archived-At: Eli Zaretskii writes: >> From: "H. Dieter Wilhelm" >> 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