-/* $OpenBSD: job.c,v 1.66 2021/10/24 21:24:17 deraadt Exp $ */
+/* $OpenBSD: job.c,v 1.67 2022/02/01 12:05:42 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
* 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);
-.\" $OpenBSD: tmux.1,v 1.873 2021/12/10 12:51:11 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.874 2022/02/01 12:05:42 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
.\"
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: December 10 2021 $
+.Dd $Mdocdate: February 1 2022 $
.Dt TMUX 1
.Os
.Sh NAME
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
.Ar command
if
.Ar shell-command
+(run with
+.Pa /bin/sh )
returns success or the second
.Ar command
otherwise.
.D1 Pq alias: Ic run
Execute
.Ar shell-command
+using
+.Pa /bin/sh
or (with
.Fl C )
a