Thread (26 messages) flat view 26 messages, 4 authors, 2016-06-15

Re: [PATCH] Use SHELL_PATH to fork commands in run_command.c:prepare_shell_cmd

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:53:24

Am 3/27/2012 5:29, schrieb Jeff King:
On Mon, Mar 26, 2012 at 10:41:18PM -0400, Ben Walton wrote:
quoted
diff --git a/run-command.c b/run-command.c
index 1db8abf..f005a31 100644
--- a/run-command.c
+++ b/run-command.c
@@ -4,6 +4,10 @@
 #include "sigchain.h"
 #include "argv-array.h"
 
+#ifndef SHELL_PATH
+# define SHELL_PATH "sh"
+#endif
Does this default ever kick in? The Makefile defaults SHELL_PATH to
/bin/sh, so we will always end up with at least that.
People do use this code outside git. Providing a fallback here would help
them.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help