From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CFtHKIqf/WHqRAAAgWs5BA (envelope-from ) for ; Fri, 04 Feb 2022 22:50:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6FyfJYqf/WFW8AAA9RJhRA (envelope-from ) for ; Fri, 04 Feb 2022 22:50:02 +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 2BFF6397AD for ; Fri, 4 Feb 2022 22:50:02 +0100 (CET) Received: from localhost ([::1]:44360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG6Sv-0005xh-7h for larch@yhetil.org; Fri, 04 Feb 2022 16:50:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG6PY-0005vS-Bv for emacs-orgmode@gnu.org; Fri, 04 Feb 2022 16:46:32 -0500 Received: from [2607:f8b0:4864:20::f2b] (port=38554 helo=mail-qv1-xf2b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG6PL-00009M-Ol for emacs-orgmode@gnu.org; Fri, 04 Feb 2022 16:46:31 -0500 Received: by mail-qv1-xf2b.google.com with SMTP id d3so747467qvb.5 for ; Fri, 04 Feb 2022 13:45:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ctpowe-net.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:organization:in-reply-to:content-transfer-encoding; bh=7/R02oxp+WkuTPlSZnID/IxmdhUgn/n89PAgWLs7SHc=; b=sleHV42hlaEnZDpC6y3cgb43DC7jCx4xt1oRD51qzbSAkqfRZGsE6Ai4K38yk455Q/ 5rnKcwMl2dAJfC5FKqHntsOgqpVjOOiKW7gBZb2m6PTkVDutNFyk1/f8TQwTw2YgnvjT bAsgmxHewW0NtlQdBRNjXwUVFy6JrDiEUsZhlsJ2lzCruEzTVIGrCjHp6h/JAEJcakw6 FIbkTrEdX7EFj0jR4qcYxAEter0/iRjUvQizBpuJVtyHfm6BP6Ye/TmeYKtNjuFITzek jhg8JOOI/MjzsBCbvXaINgDdKAg3AQMkGgmQ/yyN+z9PXlAr7FSswqTe+Zd2gJecYqYY mPtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:organization:in-reply-to :content-transfer-encoding; bh=7/R02oxp+WkuTPlSZnID/IxmdhUgn/n89PAgWLs7SHc=; b=qlDfO05zUTfy7fGI1JHoftf3ZUxIuviF0Y30+BgfoqLwHx728mGe1LOuC+Y0ePkQPl kzXMWPQiely+XT1IUwYIUONeoWvSEFVz6k+O1QgNCirWK2/ujz2IlSpSvr70YT5MgKTz iqZ5nulz/jObIBm2FpSySpw8YgkVef2YnDoDH/t/Sqj9vY75Nt3C974B6zDfiyfx2w9Q z0+5H033+3kSFGLtuP8JqpW7xKK/HlNg4XWzJNlHRS+7TNb9NWnIHYzDxAl1lAmRHMZC p5XaXjVIxZVuBH8geq5HMvkZ1UgcJH+FuIwal8z1wD9nO2lmR0buPIZHAXfZ9WK4mBzY RrCw== X-Gm-Message-State: AOAM530nRFoRRDXhqhRSQUc+eO3r4a4PUwMPmTPW7Y0mB442PnmNBYJQ wWHrsKUvBLo1996y2WyCpTjI/oBnXuw/lw== X-Google-Smtp-Source: ABdhPJxrymBGtFXO2o0HAiDYujlylvy08+MD66M/XXu4H4Nv/AY+5CWSufl6jj+ImptVveQ6mFWBmw== X-Received: by 2002:a05:6214:20ea:: with SMTP id 10mr3491389qvk.54.1644011114764; Fri, 04 Feb 2022 13:45:14 -0800 (PST) Received: from [10.15.18.19] ([156.146.46.149]) by smtp.gmail.com with ESMTPSA id l11sm1700749qkp.86.2022.02.04.13.45.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Feb 2022 13:45:14 -0800 (PST) Message-ID: <57a07903-cb7a-67ab-7a93-c6d03654c17e@ctpowe.net> Date: Fri, 4 Feb 2022 16:45:15 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: Shell SRC blocks under Windows Content-Language: en-US To: emacs-orgmode@gnu.org References: <8635kytmkx.fsf@duenenhof-wilhelm.de> From: Michael Powe Organization: The Hospice of the Mind In-Reply-To: <8635kytmkx.fsf@duenenhof-wilhelm.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f2b (failed) Received-SPF: none client-ip=2607:f8b0:4864:20::f2b; envelope-from=powem@ctpowe.net; helo=mail-qv1-xf2b.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , 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=1644011402; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7/R02oxp+WkuTPlSZnID/IxmdhUgn/n89PAgWLs7SHc=; b=nRiz1f7JBxSEobD1UTFKfUDPYKIUjvRNoDbWZuXdAzQgP/USvhXZg4IHg75Ba2Jjok7/Gv Pb0CQhxRYz4QT8vCYjKUegBez9j28GsbmeTIRK+lxuwqCPd7oWliR1kiDRWaEzHffoemVr WtlFMOxKrhr5ollBGOagzMnM59J/EBbdt4OyoOPIr0Tea+pJLqh3Gas2xi6dDKSg/5zQwF CGCaF3eurzQUzSc8kYVo38TF2lLb6hvkXTtGLPmK1wf8P6MZOaxLH1pS9O9jsFWWrj0+dm VGXAlZjwpEcGEJFnFFeEslbKLGvbL29My8Lg3SKFeN2u+hzM/W/r6ElF+9AfGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644011402; a=rsa-sha256; cv=none; b=KZlVbhRWAo8OasbiK7r2ZwcqWuGmsWgnlwfAtdhTEPWqAG19iXJiMb7g0uk0ycJ3c936ue P3RkGd0eVPm9Al/S48LeXWf8NicxoFwNY7nUC1ekusFqXUk8K8g9MwqKXzac/6cHm3O6bx Q6ObkHr/DqDtDeRabEVtBNIrNt+PrMeSwNm2xH/1j77nkxqdkEbUaIt4LXNjFqwO211XgH WghC5UFULYrqlfmY/DQWTSoM4kQboS2CPnwInTe8nef15gmAWzGKRm8NysJfEB5jWVBIS2 DXUZ5+l3unSb+M+1qip2BJkgJVSZpNT6M6UpbR/LbtZnzyLpaOlhY+wXulZH5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ctpowe-net.20210112.gappssmtp.com header.s=20210112 header.b=sleHV42h; 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: -9.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ctpowe-net.20210112.gappssmtp.com header.s=20210112 header.b=sleHV42h; 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: 2BFF6397AD X-Spam-Score: -9.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: q63Gio9pmatA 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. #+begin_src sh :results verbatim   $SHELL --version #+end_src #+RESULTS: : 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 : : This is free software; you are free to change and redistribute it. : There is NO WARRANTY, to the extent permitted by law. Thanks. mp -- "Do not neglect to do good, and to share what you have." - Hebrews 13:16a Michael Powe Naugatuck CT USA powem@ctpowe.net