pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b73612
)
Launch scroll program with the default shell
author
Quentin Rameau
<quinq@fifth.space>
Sat, 11 Apr 2020 10:09:20 +0000
(12:09 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 11 Apr 2020 13:23:23 +0000
(15:23 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
2ecf8f3
..
59db144
100644
(file)
--- 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;