summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-02-01 14:01:11 +0000
committerThomas Adam <thomas@xteddy.org>2022-02-01 14:01:11 +0000
commit1b7afd51293e2e3da99d2dfed57dc1ebc4cdf5d5 (patch)
tree7d216eb8e9d4ea34f8f0cb0bca3ccdd5f7ba9230
parent6c0397f49769666c836a312c292e9c67adc41058 (diff)
parent7a4ba6d4a5458f4e2450024d72f0e16905dd5c64 (diff)
Merge branch 'obsd-master' into master
-rw-r--r--job.c3
-rw-r--r--menu.c2
-rw-r--r--tmux.18
3 files changed, 10 insertions, 3 deletions
diff --git a/job.c b/job.c
index b312fdc2..d2d9adbf 100644
--- a/job.c
+++ b/job.c
@@ -87,9 +87,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/menu.c b/menu.c
index aaa1287e..c770cd7d 100644
--- a/menu.c
+++ b/menu.c
@@ -81,6 +81,8 @@ menu_add_item(struct menu *menu, const struct menu_item *item,
menu->count--;
return;
}
+ if (c->tty.sx <= 4)
+ return;
max_width = c->tty.sx - 4;
slen = strlen(s);
diff --git a/tmux.1 b/tmux.1
index 78a7d10b..8ca63075 100644
--- a/tmux.1
+++ b/tmux.1
@@ -4992,7 +4992,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
@@ -6158,6 +6160,8 @@ Execute the first
.Ar command
if
.Ar shell-command
+(run with
+.Pa /bin/sh )
returns success or the second
.Ar command
otherwise.
@@ -6194,6 +6198,8 @@ option.
.D1 Pq alias: Ic run
Execute
.Ar shell-command
+using
+.Pa /bin/sh
or (with
.Fl C )
a