From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 8EA966DE0C6D for ; Tue, 15 Aug 2017 13:09:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.711 X-Spam-Level: X-Spam-Status: No, score=-0.711 tagged_above=-999 required=5 tests=[AWL=0.210, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.211, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KUVvfGauMNTy for ; Tue, 15 Aug 2017 13:09:37 -0700 (PDT) X-Greylist: delayed 308 seconds by postgrey-1.36 at arlo; Tue, 15 Aug 2017 13:09:37 PDT Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by arlo.cworth.org (Postfix) with ESMTPS id 4D7E86DE0C3F for ; Tue, 15 Aug 2017 13:09:37 -0700 (PDT) Received: from roberts-mbp-2.dyn.robewald.de ([92.221.182.68]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M54L0-1dOWT546SU-00zGL0; Tue, 15 Aug 2017 22:04:22 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH] emacs: Make the shell location configurable From: Robert Ewald In-Reply-To: <87fucsom30.fsf@tesseract.cs.unb.ca> Date: Tue, 15 Aug 2017 22:04:20 +0200 Cc: notmuch@notmuchmail.org Content-Transfer-Encoding: 7bit Message-Id: <1B88EBF6-A978-4723-AAF4-7063EF36222B@gmx.net> References: <20170814223623.28411-1-robewald@gmx.net> <87fucsom30.fsf@tesseract.cs.unb.ca> To: David Bremner X-Mailer: Apple Mail (2.3273) X-Provags-ID: V03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XgA0V0b7nVm0eFBgdp uXXo/7E2/uhIbnXe8agGut7XexAnUWKKOerDOcLc3FAibsCEYM= X-Mailman-Approved-At: Wed, 16 Aug 2017 12:02:44 -0700 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2017 20:09:38 -0000 Hello, Thanks for reviewing the patch. > On 15 Aug 2017, at 18:02, David Bremner wrote: > > Robert Ewald writes: > >> The location of the shell is not always /bin/sh. Use the >> shell-file-name variable to be able to specify the shell location. >> --- > > Can you say a bit more about the problem you are trying to solve? I > think shell-file-name is not guaranteed to be Bourne shell compatible. I would like to use notmuch with a remote-notmuch script on emacs on windows (not cygwin). Right now I cannot make this work, because that version of emacs doesn't have any kind of unix style paths. I have an installation of msys that provides the usual unix tools. This is configured in the init.el by setting shell-file-name. Does the shell-file-name have to be bourne shell compatible? My understanding is that using "/bin/sh" requires a POSIX compatible shell, bash specific shell scripts should be invoked with e.g. /bin/bash. I believe a POSIX compatible shell is sufficient in this particular case. Of course, if shell-file-name is not POSIX compatible this line may not work. Another way would be to introduce another configuration variable, but I would like to avoid that. Best regards Robert