mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 04:46:22 +00:00
Well, I was confused. Damn state exams. Instead of discussing this shit I
should really learn opthalmology instead. :O
This commit is contained in:
parent
eb6713acf1
commit
2e38ab7afd
1 changed files with 1 additions and 4 deletions
5
st.c
5
st.c
|
@ -865,9 +865,6 @@ execsh(void) {
|
||||||
char **args;
|
char **args;
|
||||||
char *envshell = getenv("SHELL");
|
char *envshell = getenv("SHELL");
|
||||||
|
|
||||||
if (envshell == NULL)
|
|
||||||
envshell ="/bin/sh";
|
|
||||||
|
|
||||||
unsetenv("COLUMNS");
|
unsetenv("COLUMNS");
|
||||||
unsetenv("LINES");
|
unsetenv("LINES");
|
||||||
unsetenv("TERMCAP");
|
unsetenv("TERMCAP");
|
||||||
|
@ -881,7 +878,7 @@ execsh(void) {
|
||||||
|
|
||||||
DEFAULT(envshell, SHELL);
|
DEFAULT(envshell, SHELL);
|
||||||
putenv("TERM="TNAME);
|
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);
|
execvp(args[0], args);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue