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

Diff for /src/usr.bin/tmux/window.c between version 1.67 and 1.68

version 1.67, 2011/08/24 10:29:57 version 1.68, 2011/09/25 18:53:04
Line 697 
Line 697 
                 if (*wp->cmd != '\0') {                  if (*wp->cmd != '\0') {
                         /* Set SHELL but only if it is currently not useful. */                          /* Set SHELL but only if it is currently not useful. */
                         shell = getenv("SHELL");                          shell = getenv("SHELL");
                         if (shell == NULL || *shell == '\0' || areshell(shell))                          if (checkshell(shell))
                                 setenv("SHELL", wp->shell, 1);                                  setenv("SHELL", wp->shell, 1);
   
                         execl(_PATH_BSHELL, "sh", "-c", wp->cmd, (char *) NULL);                          execl(_PATH_BSHELL, "sh", "-c", wp->cmd, (char *) NULL);

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68