commit c1145268f6b6c6f03a8bec1c09d356d6a4eba77e
Author:     Quentin Rameau <[email protected]>
AuthorDate: Sat Apr 11 12:09:20 2020 +0200
Commit:     Hiltjo Posthuma <[email protected]>
CommitDate: Sat Apr 11 15:23:23 2020 +0200

    Launch scroll program with the default shell

diff --git a/st.c b/st.c
index 2ecf8f3..59db144 100644
--- a/st.c
+++ b/st.c
@@ -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;

Reply via email to