Skip to contentSkip to conversation

rebase: Fix documentation about used shell in -x

PATCH In review Nikolay Borisov 2 participants 2 messages Jan 17, 2024 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rebase: Fix documentation about used shell in -x

The shell used when using the -x option is erroneously documented to be the one pointed to by the $SHELL environmental variable. This was true when rebase was implemented as a shell script but this is no longer true.

---
 Documentation/git-rebase.txt | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
Documentation/git-rebase.txt +3 -4
index 25516c45d8b8..2cd55aedc0f9 100644
@@ -963,10 +963,9 @@ The interactive rebase will stop when a command fails (i.e. exits with
 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
-use shell features (like "cd", ">", ";" ...). The command is run from
-the root of the working tree.
+The "exec" command launches the command in a shell (the default one, usually
+/bin/sh), so you can use shell features (like "cd", ">", ";" ...). The command
+is run from the root of the working tree.
 
 ----------------------------------
 $ git rebase -i --exec "make test"

--
2.34.1

#1 lore raw
Quoted 7 lines · Nikolay Borisov

The shell used when using the -x option is erroneously documented to be the one pointed to by the $SHELL environmental variable. This was true when rebase was implemented as a shell script but this is no longer true.

---

Ah, our mails crossed, and this is much better than my "tentative" one. Let me replace it with this one and queue.

Thanks.

Quoted 23 lines
 Documentation/git-rebase.txt | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
Documentation/git-rebase.txt +3 -5
index 25516c45d8b8..2cd55aedc0f9 100644
@@ -963,10 +963,9 @@ The interactive rebase will stop when a command fails (i.e. exits with
 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
-use shell features (like "cd", ">", ";" ...). The command is run from
-the root of the working tree.
+The "exec" command launches the command in a shell (the default one, usually
+/bin/sh), so you can use shell features (like "cd", ">", ";" ...). The command
+is run from the root of the working tree.
 
 ----------------------------------
 $ git rebase -i --exec "make test"
--

2.34.1