[PATCH] emacs: Make the shell location configurable

Robert Ewald robewald at gmx.net
Mon Aug 14 15:36:23 PDT 2017


The location of the shell is not always /bin/sh. Use the
shell-file-name variable to be able to specify the shell location.
---
 emacs/notmuch-lib.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 337b20ac..8dffe9f2 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -921,7 +921,7 @@ status."
 	 (command (or (executable-find notmuch-command)
 		      (error "command not found: %s" notmuch-command)))
 	 (proc (apply #'start-process name buffer
-		      "/bin/sh" "-c"
+		      shell-file-name "-c"
 		      "exec 2>\"$1\"; shift; exec \"$0\" \"$@\""
 		      command err-file args)))
     (process-put proc 'err-file err-file)
-- 
2.11.0



More information about the notmuch mailing list