X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=43f5bc2aec13a24c5cacb37ee47610d51152fb09;hb=eb6713acf1928ec94364627ed583252370051705;hp=693739e00f3f9110bbbf3f24931a7d64e7d9e872;hpb=9e813947cf4631c0ca8e5f73ebfb269ef2f8252b;p=st.git 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");