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) {
char **args;
char *envshell = getenv("SHELL");
+ if (envshell == NULL)
+ envshell ="/bin/sh";
+
unsetenv("COLUMNS");
unsetenv("LINES");
unsetenv("TERMCAP");