aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/st.c b/st.c
index 693739e..43f5bc2 100644
--- a/st.c
+++ b/st.c
@@ -865,6 +865,9 @@ execsh(void) {
865 char **args; 865 char **args;
866 char *envshell = getenv("SHELL"); 866 char *envshell = getenv("SHELL");
867 867
868 if (envshell == NULL)
869 envshell ="/bin/sh";
870
868 unsetenv("COLUMNS"); 871 unsetenv("COLUMNS");
869 unsetenv("LINES"); 872 unsetenv("LINES");
870 unsetenv("TERMCAP"); 873 unsetenv("TERMCAP");