From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Org-mode shell SRC block under Windows Date: Fri, 04 Feb 2022 09:16:47 +0200 Message-ID: <83y22r2ja8.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28623"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 09:00:47 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 1nFtWR-0007Hk-8T for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 09:00:47 +0100 Original-Received: from localhost ([::1]:42770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFtWN-0005fc-NY for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 03:00:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFspy-0002Mk-Ik for help-gnu-emacs@gnu.org; Fri, 04 Feb 2022 02:16:55 -0500 Original-Received: from [2001:470:142:3::e] (port=43724 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFspy-0001og-67 for help-gnu-emacs@gnu.org; Fri, 04 Feb 2022 02:16:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Z5J35ZAq/EQ01l7vGT5IBht88pnyzhbd05G169EFgmk=; b=B3oGTdsDkb+B y6g4ugUG+1arq+9XDHFSUqJTUncW+UGa+ihXZPBS7H97gPpXnajxqCuz7qRu9c8LTrPwFQGGnG5VU FL7BZBZZYdtB4WnnVDPpwqZTQnOCaV1jfEhdfsHFvDyGj6HGfDleyRuFSi2do3hj0/hzIzKvmKrWK G9cp//x7KcS4Sf8qLy/A9XzcVTIcS7xGaAFEj1emKF+AreoKpeh5EgCr5odQ9tA+BEvovI6jdMsYr 0Tg70uPDPFoOw3mlM5Gg+YDLjjfslkD6XQfWAwSpYghYYRR/Kz4jkcRg622/yvosi6bet6R9L9O/o ZQhFq7ieNBPiUEouOttv5A==; Original-Received: from [87.69.77.57] (port=1756 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFspp-0000VE-EP for help-gnu-emacs@gnu.org; Fri, 04 Feb 2022 02:16:51 -0500 In-Reply-To: (dieter@duenenhof-wilhelm.de) 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:135715 Archived-At: > 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! 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".