Introduction
Introduction Statistics Contact Development Disclaimer Help
Launch scroll program with the default shell - st - simple terminal
git clone git://git.suckless.org/st
Log
Files
Refs
README
LICENSE
---
commit c1145268f6b6c6f03a8bec1c09d356d6a4eba77e
parent 0b73612c0dc51dbec1717e5da94bc94559c37246
Author: Quentin Rameau <[email protected]>
Date: Sat, 11 Apr 2020 12:09:20 +0200
Launch scroll program with the default shell
Diffstat:
M st.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git 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;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.