From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aE19GHCc/mEqcQAAgWs5BA (envelope-from ) for ; Sat, 05 Feb 2022 16:49:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aDz6FXCc/mG6hAEA9RJhRA (envelope-from ) for ; Sat, 05 Feb 2022 16:49:04 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E56EF372C8 for ; Sat, 5 Feb 2022 16:49:03 +0100 (CET) Received: from localhost ([::1]:40926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGNJ8-0007mH-Nl for larch@yhetil.org; Sat, 05 Feb 2022 10:49:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGNIW-0007ld-Rs for emacs-orgmode@gnu.org; Sat, 05 Feb 2022 10:48:24 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:52637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGNIP-00007T-6Z for emacs-orgmode@gnu.org; Sat, 05 Feb 2022 10:48:24 -0500 Received: from VSL7V7PW ([92.116.147.232]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mbiak-1mdBC13NYE-00dG63; Sat, 05 Feb 2022 16:48:03 +0100 From: "H. Dieter Wilhelm" To: Michael Powe Subject: Re: Shell SRC blocks under Windows References: <8635kytmkx.fsf@duenenhof-wilhelm.de> <57a07903-cb7a-67ab-7a93-c6d03654c17e@ctpowe.net> Date: Sat, 05 Feb 2022 16:48:02 +0100 In-Reply-To: <57a07903-cb7a-67ab-7a93-c6d03654c17e@ctpowe.net> (Michael Powe's message of "Fri, 4 Feb 2022 16:45:15 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:2fY0k5tai5KBwXnCIU1evnDfFCUt9lHtw/L9FfsaWQl3DIeYbK9 rEQtBayFUrNUgU72ZfOu+gluYOr6V8NgaUR8WzxKc0VYNgNR3u0jQENp3Kr8l29YrdmSm7N JsaEqSyz06LWXO/d50KbZUwEc1xbOdJ9K7LX+PSBRNy2F7efMMMMMFOc7koBdm3wsNDgGgR N+WBIDAhDRzWQfu/rIrNg== X-UI-Out-Filterresults: notjunk:1;V03:K0:gVFbgcQuTz0=:OQNxx6vNdWqw9Ij24JsxDT qEcsACUbR1qsOhCfHxHxm6+oJpKIJu0hkFzsL9iCgzwHqqOt+/aZDmg1unKe+xCbNok2RnPL/ rx/UTjrSyjqcTQZzX6B9TWlFjQrjzTV7KwBIWo076COwmq4gerCKsIWHCVnLXk8ombT78piqT ArmDSEWLiMBpSwsxU4IAwsTH33yJRpoZN1oQLb7gk2v3Zp5atOeV2nJiWeUTEBSBm/hUf2m7y sw1de81FNScKN85Jc3SnhC2WH9SL7fGoJVGisLV3eguAPSwLJ5a6CW+2lAeVtp0GTqzh3E7LD KgLSmweALNGLZTkA+jPY7qV5Kn3EKMM0LWBZujoJLuL8viuYZCvyv832vwezvoB1fBBpfqPTl XjVUBk1EWKER5HWjQhPCY7b9jKk/cLGr/SO/xJyYsLamOYtmfOhmVAAagF4FoBO2M9socHGkH uItU/aFaU5h3dju0ZDIwd1SsGx/6+1KtKqj8q1jeaIrHifSAEXoxpBSV/3ceKAFo3CVJCROGR tyiRVe5THE/lVX4qOHII0l6qZTQzarmGF50u8naq6MmKqBRJt2+dtYdpT8Tr3gdoKqja01gzD ZrZCX9zBuBwG2v4frHUBznn9fKDAj8N66iSx+Oz1TGagkIxpEZZyO653Wq6fxnqZQkE0a7xzf 2IMc9glpn8rkFQJfpg24ZEk7e/74kKbVniwt1vUQILu+NNJ2imDUIQt1SU8YYgiZeoL/rWeoU qBI5MOPM6huNUz5n Received-SPF: none client-ip=212.227.126.131; 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_DNSWL_NONE=-0.0001, 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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644076144; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=qA6NrVaPl9de8MXf8gPaqpX1y1DHDdFkdN+YOMB3gyE=; b=hD/sFyPgpzo0hndSZGu4r2VhZhg8nyf7SPat40jMMR9y+OeuJIeDREqZBJOTdl3HE21Wwq 4g7fYBAMqYJEnKAkHDOBGMa56yxcx7rG12ET4TQ6RF9IAiu6o96qf83E3y98eui0skczrS pE71bxPmrusP3nj3kbQXT2QZVY+arBKkvJ1m4inWBcuVj1DZIl5PXT8NPjwQWpkWvKk05Z mGX038ZhY5DAR01JOtGzaak0TUbrqOXpdswjmXYruq0hCStepHPC4zer3UreGXws36cLNY 4Dm7ajqgAhupQi9jnPQ7kc/9achB7QSumH7ezmzyZM0GwQ1x109LG4ucePjBOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644076144; a=rsa-sha256; cv=none; b=kQLC8bJB9WLUFea+sum0chPkwihvmWZE0AxHnd+pSLbcoDTPNf8oapPAIG2j23Mpe9yc1e IhmJ+HCSMejUi0daX2fzaCC1FnWXlKsabzTiZcgBJwaZcC/dAHtBNGu6+5qM3nkzgBTjTr d05jSoO1XNt9gXrJdJAIqo1/OkicOkeYBlZ6CkEMBsdDcUj6UOq1rL/+kkdeHnByIk7h3E 8fG03QPcWk9of7FycUbCnU9mehR8g2PWGhNoqTvOZCJF/hAwBBD+YaguxW/joti8SPQH4Q tQmNhSIm+90NVlWHdX080zm5V1USHkSwyLdIH6N30ZhNI/+fwRaB7uuHOfrObQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E56EF372C8 X-Spam-Score: -3.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: nF0S/mq7B2ae Michael Powe writes: > On 2/4/2022 15:15, H. Dieter Wilhelm wrote: >> Hello >> >> 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 >> longer. >> >> 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 @ >> /home/dieter/.emacs.d/elpa/org-plus-contrib-20210920/) > > 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. Yes, you are right, when using > #+begin_src sh It seems that I'm also running some bash shell! :-) Previously I was using the src block in this way: #+begin_src shell and here the shell seems to be com.exe. But I'm not sure if I'm halfway there with "sh"? I need to run the following MSYS2 command AND switch between two arguments (for building Emacs). \MSYS2\msys2_shell.cmd -mingw64 and \MSYS2\msys2_shell.cmd -msys. How could I achieve this within a src block? Thanks