If there is really someone without SHELL set, help him/her. - st - Personal fork of st (HTM) git clone git://git.drkhsh.at/st.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit eb6713acf1928ec94364627ed583252370051705 (DIR) parent 9e813947cf4631c0ca8e5f73ebfb269ef2f8252b (HTM) Author: Christoph Lohmann <20h@r-36.net> Date: Tue, 9 Oct 2012 19:33:26 +0200 If there is really someone without SHELL set, help him/her. Diffstat: M st.c | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- (DIR) diff --git 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");