X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=cf329fd385b8961b2ac3e6cb20a2f2771adbdddf;hb=a61b9ea82ef65cd00f1d4908113fb9e3f7c7cc66;hp=a2564f8c38c50ed271cf6e4f815f53a1fb460717;hpb=e09709d92d89c8593f7390f12dc22fdc563eb57f;p=st.git diff --git a/st.c b/st.c index a2564f8..cf329fd 100644 --- a/st.c +++ b/st.c @@ -739,6 +739,10 @@ execsh(void) { char **args; char *envshell = getenv("SHELL"); + unsetenv("COLUMNS"); + unsetenv("LINES"); + unsetenv("TERMCAP"); + DEFAULT(envshell, SHELL); putenv("TERM="TNAME); args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};