Launch scroll program with the default shell

This commit is contained in:
Quentin Rameau 2020-04-11 12:09:20 +02:00 committed by Hiltjo Posthuma
parent 0b73612c0d
commit c1145268f6

9
st.c
View file

@ -682,9 +682,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;