From: Christoph Lohmann <20h@r-36.net> Date: Tue, 9 Oct 2012 17:33:26 +0000 (+0200) Subject: If there is really someone without SHELL set, help him/her. X-Git-Tag: 0.3~13 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=fa952e19019f4c5a693d5f0e1fa9ef182d5527e9;p=st.git If there is really someone without SHELL set, help him/her. --- 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");