version 1.15, 2020/03/02 08:30:30 |
version 1.16, 2020/03/17 11:10:12 |
|
|
/* Then the shell. If respawning, use the old one. */ |
/* Then the shell. If respawning, use the old one. */ |
if (~sc->flags & SPAWN_RESPAWN) { |
if (~sc->flags & SPAWN_RESPAWN) { |
tmp = options_get_string(s->options, "default-shell"); |
tmp = options_get_string(s->options, "default-shell"); |
if (*tmp == '\0' || areshell(tmp)) |
if (!checkshell(tmp)) |
tmp = _PATH_BSHELL; |
tmp = _PATH_BSHELL; |
free(new_wp->shell); |
free(new_wp->shell); |
new_wp->shell = xstrdup(tmp); |
new_wp->shell = xstrdup(tmp); |