diff options
author | Quentin Rameau <quinq@fifth.space> | 2020-04-11 12:09:20 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-04-11 15:23:23 +0200 |
commit | c1145268f6b6c6f03a8bec1c09d356d6a4eba77e (patch) | |
tree | f76c1d4437a08e70953d3daa4144bae61fb0c743 /st.c | |
parent | 0b73612c0dc51dbec1717e5da94bc94559c37246 (diff) | |
download | st-patched-c1145268f6b6c6f03a8bec1c09d356d6a4eba77e.tar.bz2 st-patched-c1145268f6b6c6f03a8bec1c09d356d6a4eba77e.tar.xz st-patched-c1145268f6b6c6f03a8bec1c09d356d6a4eba77e.zip |
Launch scroll program with the default shell
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -682,9 +682,12 @@ execsh(char *cmd, char **args) | |||
682 | if (args) { | 682 | if (args) { |
683 | prog = args[0]; | 683 | prog = args[0]; |
684 | arg = NULL; | 684 | arg = NULL; |
685 | } else if (scroll || utmp) { | 685 | } else if (scroll) { |
686 | prog = scroll ? scroll : utmp; | 686 | prog = scroll; |
687 | arg = scroll ? utmp : NULL; | 687 | arg = utmp ? utmp : sh; |
688 | } else if (utmp) { | ||
689 | prog = utmp; | ||
690 | arg = NULL; | ||
688 | } else { | 691 | } else { |
689 | prog = sh; | 692 | prog = sh; |
690 | arg = NULL; | 693 | arg = NULL; |