commit 18acc55f122103efcbc342f900ca4fbff9e8e076 parent a1d06b7b983d59727c1a4a2da21ce166106bf4ad Author: bakkeby <bakkeby@gmail.com> Date: Mon, 20 Apr 2020 10:47:21 +0200 Launch scroll program with the default shell Diffstat:
| M | st.c | | | 9 | ++++++--- |
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/st.c b/st.c @@ -744,9 +744,12 @@ execsh(char *cmd, char **args) if (args) { prog = args[0]; arg = NULL; - } else if (scroll || utmp) { - prog = scroll ? scroll : utmp; - arg = scroll ? utmp : NULL; + } else if (scroll) { + prog = scroll; + arg = utmp ? utmp : sh; + } else if (utmp) { + prog = utmp; + arg = NULL; } else { prog = sh; arg = NULL;