[BACK]Return to spawn.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/spawn.c between version 1.15 and 1.16

version 1.15, 2020/03/02 08:30:30 version 1.16, 2020/03/17 11:10:12
Line 320 
Line 320 
         /* 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);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16