Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
eb6713a
)
Well, I was confused. Damn state exams. Instead of discussing this shit I
author
Christoph Lohmann <
[email protected]
>
Tue, 9 Oct 2012 17:40:37 +0000
(19:40 +0200)
committer
Christoph Lohmann <
[email protected]
>
Tue, 9 Oct 2012 17:40:37 +0000
(19:40 +0200)
should really learn opthalmology instead. :O
st.c
diff
|
blob
|
history
diff --git
a/st.c
b/st.c
index
43f5bc2
..
f967d2c
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-865,9
+865,6
@@
execsh(void) {
char **args;
char *envshell = getenv("SHELL");
- if (envshell == NULL)
- envshell ="/bin/sh";
-
unsetenv("COLUMNS");
unsetenv("LINES");
unsetenv("TERMCAP");
@@
-881,7
+878,7
@@
execsh(void) {
DEFAULT(envshell, SHELL);
putenv("TERM="TNAME);
- args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};
+ args = opt_cmd ? opt_cmd : (char
*[]){envshell, "-i", NULL};
execvp(args[0], args);
exit(EXIT_FAILURE);
}