[dev] [PATCH 1/1] Launch scroll program with the default shell

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Sat, 11 Apr 2020 12:15:34 +0200

---
 st.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/st.c b/st.c
index e51fe15..afe82eb 100644
--- a/st.c
+++ b/st.c
_AT_@ -689,9 +689,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;
-- 
2.26.0
Received on Sat Apr 11 2020 - 12:15:34 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 11 2020 - 12:24:09 CEST