mirror of
git://git.suckless.org/st
synced 2025-05-13 21:45:49 +01:00
If there is really someone without SHELL set, help him/her.
This commit is contained in:
parent
5967a7c0db
commit
fa952e1901
3
st.c
3
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user