mirror of https://github.com/tmux/tmux.git
Mention that if-shell and #() use /bin/sh.
parent
770d28b8c5
commit
7a4ba6d4a5
3
job.c
3
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.
|
* if-shell to decide on default-terminal based on outside TERM.
|
||||||
*/
|
*/
|
||||||
env = environ_for_session(s, !cfg_finished);
|
env = environ_for_session(s, !cfg_finished);
|
||||||
if (e != NULL) {
|
if (e != NULL)
|
||||||
environ_copy(e, env);
|
environ_copy(e, env);
|
||||||
}
|
|
||||||
|
|
||||||
sigfillset(&set);
|
sigfillset(&set);
|
||||||
sigprocmask(SIG_BLOCK, &set, &oldset);
|
sigprocmask(SIG_BLOCK, &set, &oldset);
|
||||||
|
|
8
tmux.1
8
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.
|
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
|
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.
|
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
|
.Nm
|
||||||
global environment set (see the
|
global environment set (see the
|
||||||
.Sx GLOBAL AND SESSION ENVIRONMENT
|
.Sx GLOBAL AND SESSION ENVIRONMENT
|
||||||
|
@ -6155,6 +6157,8 @@ Execute the first
|
||||||
.Ar command
|
.Ar command
|
||||||
if
|
if
|
||||||
.Ar shell-command
|
.Ar shell-command
|
||||||
|
(run with
|
||||||
|
.Pa /bin/sh )
|
||||||
returns success or the second
|
returns success or the second
|
||||||
.Ar command
|
.Ar command
|
||||||
otherwise.
|
otherwise.
|
||||||
|
@ -6191,6 +6195,8 @@ option.
|
||||||
.D1 Pq alias: Ic run
|
.D1 Pq alias: Ic run
|
||||||
Execute
|
Execute
|
||||||
.Ar shell-command
|
.Ar shell-command
|
||||||
|
using
|
||||||
|
.Pa /bin/sh
|
||||||
or (with
|
or (with
|
||||||
.Fl C )
|
.Fl C )
|
||||||
a
|
a
|
||||||
|
|
Loading…
Reference in New Issue