Launch scroll program with the default shell

This commit is contained in:
bakkeby 2020-04-20 10:47:21 +02:00
parent a1d06b7b98
commit 18acc55f12
1 changed files with 6 additions and 3 deletions

9
st.c
View File

@ -744,9 +744,12 @@ execsh(char *cmd, char **args)
if (args) { if (args) {
prog = args[0]; prog = args[0];
arg = NULL; arg = NULL;
} else if (scroll || utmp) { } else if (scroll) {
prog = scroll ? scroll : utmp; prog = scroll;
arg = scroll ? utmp : NULL; arg = utmp ? utmp : sh;
} else if (utmp) {
prog = utmp;
arg = NULL;
} else { } else {
prog = sh; prog = sh;
arg = NULL; arg = NULL;