pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e81394
)
If there is really someone without SHELL set, help him/her.
author
Christoph Lohmann
<20h@r-36.net>
Tue, 9 Oct 2012 17:33:26 +0000
(19:33 +0200)
committer
Christoph Lohmann
<20h@r-36.net>
Tue, 9 Oct 2012 17:33:26 +0000
(19:33 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
693739e
..
43f5bc2
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-865,6
+865,9
@@
execsh(void) {
char **args;
char *envshell = getenv("SHELL");
+ if (envshell == NULL)
+ envshell ="/bin/sh";
+
unsetenv("COLUMNS");
unsetenv("LINES");
unsetenv("TERMCAP");