summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2022-02-01 12:05:42 +0000
committernicm <nicm>2022-02-01 12:05:42 +0000
commit7a4ba6d4a5458f4e2450024d72f0e16905dd5c64 (patch)
tree5db7aef8dcaa5cd65024b24f16d2e88d37806207
parent770d28b8c517fd87621ea3e8d6d7bdc4f35b3a94 (diff)
Mention that if-shell and #() use /bin/sh.
-rw-r--r--job.c3
-rw-r--r--tmux.18
2 files changed, 8 insertions, 3 deletions
diff --git a/job.c b/job.c
index dad211f4..fb33c0cf 100644
--- a/job.c
+++ b/job.c
@@ -89,9 +89,8 @@ job_run(const char *cmd, int argc, char **argv, struct environ *e, struct sessio
* if-shell to decide on default-terminal based on outside TERM.
*/
env = environ_for_session(s, !cfg_finished);
- if (e != NULL) {
+ if (e != NULL)
environ_copy(e, env);
- }
sigfillset(&set);
sigprocmask(SIG_BLOCK, &set, &oldset);
diff --git a/tmux.1 b/tmux.1
index 708f5c75..5310b97f 100644
--- a/tmux.1
+++ b/tmux.1
@@ -4989,7 +4989,9 @@ commands to finish; instead, the previous result from running the same command i
or a placeholder if the command has not been run before.
If the command hasn't exited, the most recent line of output will be used, but the status
line will not be updated more than once a second.
-Commands are executed with the
+Commands are executed using
+.Pa /bin/sh
+and with the
.Nm
global environment set (see the
.Sx GLOBAL AND SESSION ENVIRONMENT
@@ -6155,6 +6157,8 @@ Execute the first
.Ar command
if
.Ar shell-command
+(run with
+.Pa /bin/sh )
returns success or the second
.Ar command
otherwise.
@@ -6191,6 +6195,8 @@ option.
.D1 Pq alias: Ic run
Execute
.Ar shell-command
+using
+.Pa /bin/sh
or (with
.Fl C )
a