sh.c (172666) | sh.c (184072) |
---|---|
1/* $Header: /p/tcsh/cvsroot/tcsh/sh.c,v 3.136 2007/02/22 21:57:37 christos Exp $ */ 2/* 3 * sh.c: Main shell routines 4 */ 5/*- 6 * Copyright (c) 1980, 1991 The Regents of the University of California. 7 * All rights reserved. 8 * --- 448 unchanged lines hidden (view full) --- 457 if (*cp) { 458 /* only for login shells or root and we must have a tty */ 459 if ((cp2 = Strrchr(cp, (Char) '/')) != NULL) { 460 cp2 = cp2 + 1; 461 } 462 else 463 cp2 = cp; 464 if (!(((Strncmp(cp2, STRtty, 3) == 0) && Isalpha(cp2[3])) || | 1/* $Header: /p/tcsh/cvsroot/tcsh/sh.c,v 3.136 2007/02/22 21:57:37 christos Exp $ */ 2/* 3 * sh.c: Main shell routines 4 */ 5/*- 6 * Copyright (c) 1980, 1991 The Regents of the University of California. 7 * All rights reserved. 8 * --- 448 unchanged lines hidden (view full) --- 457 if (*cp) { 458 /* only for login shells or root and we must have a tty */ 459 if ((cp2 = Strrchr(cp, (Char) '/')) != NULL) { 460 cp2 = cp2 + 1; 461 } 462 else 463 cp2 = cp; 464 if (!(((Strncmp(cp2, STRtty, 3) == 0) && Isalpha(cp2[3])) || |
465 Strstr(cp, STRslptssl) != NULL)) { | 465 Strstr(cp, STRptssl) != NULL)) { |
466 if (getenv("DISPLAY") == NULL) { 467 /* NOT on X window shells */ 468 setcopy(STRautologout, STRdefautologout, VAR_READWRITE); 469 } 470 } 471 } 472 } 473# endif /* convex */ --- 1891 unchanged lines hidden --- | 466 if (getenv("DISPLAY") == NULL) { 467 /* NOT on X window shells */ 468 setcopy(STRautologout, STRdefautologout, VAR_READWRITE); 469 } 470 } 471 } 472 } 473# endif /* convex */ --- 1891 unchanged lines hidden --- |