git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] rebase: Fix documentation about used shell in -x

From
NBNikolay Borisov <nik.borisov@suse.com>
Date
Jan 16, 2024, 14:18 UTC
Message-ID
<20240116141842.193151-1-nik.borisov@suse.com>

The shell used when using the -x option is the one pointed to by the SHELL_PATH constant at build time. This erroneous statement in the documentation sent me on a 10 minute wild goose chase wondering why my $SHELL was pointing to /bin/bash and my /bin/sh to dash and git was using dash and not bash.

Signed-off-by: Nikolay Borisov <nik.borisov@suse.com>
---
 Documentation/git-rebase.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt
index 25516c45d8b8..08cf52daf39e 100644
--- a/Documentation/git-rebase.txt
+++ b/Documentation/git-rebase.txt
@@ -964,7 +964,7 @@ non-0 status) to give you an opportunity to fix the problem. You can
 continue with `git rebase --continue`.
 
 The "exec" command launches the command in a shell (the one specified
-in `$SHELL`, or the default shell if `$SHELL` is not set), so you can
+by the build-time SHELL_PATH variable, usually /bin/sh), so you can
 use shell features (like "cd", ">", ";" ...). The command is run from
 the root of the working tree.
 
-- 
2.34.1
Next: Jeff King
Message 1 of 5 in “rebase: Fix documentation about used shell in -x”
  1. rebase: Fix documentation about used shell in -xNikolay Borisov, Jan 16, 2024
  2. Jeff KingJan 16, 2024
  3. Junio C HamanoJan 16, 2024
  4. Kristoffer HaugsbakkJan 16, 2024
  5. Junio C HamanoJan 17, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.