This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
st
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Launch scroll program with the default shell
master
Quentin Rameau
5 years ago
committed by
Hiltjo Posthuma
parent
0b73612c0d
commit
c1145268f6
1 changed files
with
6 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-3
st.c
+ 6
- 3
st.c
View File
@ -682,9 +682,12 @@ execsh(char *cmd, char **args)
if
(
args
)
{
if
(
args
)
{
prog
=
args
[
0
]
;
prog
=
args
[
0
]
;
arg
=
NULL
;
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
{
}
else
{
prog
=
sh
;
prog
=
sh
;
arg
=
NULL
;
arg
=
NULL
;
Write
Preview
Loading…
Cancel
Save