@ -208,12 +208,10 @@ die(const char *errstr, ...) {
void
execsh(void) {
char *shell = getenv("SHELL");
char *args[3] = {getenv("SHELL"), "-i", NULL};
if(!shell)
DEFAULT(args[0], "/bin/sh"); /* default shell if getenv() failed */
shell = "/bin/sh";
char *args[3] = {shell, "-i", NULL};
putenv("TERM=" TNAME);
execvp(shell, args);
execvp(args[0], args);
}