aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/st.c b/st.c
index a2564f8..cf329fd 100644
--- a/st.c
+++ b/st.c
@@ -739,6 +739,10 @@ execsh(void) {
739 char **args; 739 char **args;
740 char *envshell = getenv("SHELL"); 740 char *envshell = getenv("SHELL");
741 741
742 unsetenv("COLUMNS");
743 unsetenv("LINES");
744 unsetenv("TERMCAP");
745
742 DEFAULT(envshell, SHELL); 746 DEFAULT(envshell, SHELL);
743 putenv("TERM="TNAME); 747 putenv("TERM="TNAME);
744 args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL}; 748 args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};