diff -ur a/st.c b/st.c --- a/st.c 2012-02-09 14:11:29.000000000 +0000 +++ b/st.c 2012-02-09 14:13:25.000000000 +0000 @@ -661,7 +661,7 @@ void execsh(void) { char **args; - char *envshell = getenv("SHELL"); + char *envshell = SHELL; DEFAULT(envshell, "sh"); putenv("TERM="TNAME);