It has always bugged me that ps and w did not display su with tcsh

properly.  I know, tcsh is not a "Real Shell".

jc       p2 :0.0             Tue04PM     - -u (tcsh)
                                           ^^^
7173 p2  S+     0:01.33 -u (tcsh)
			^^^

Submitted by:	John Capo <jc@irbs.com>
This commit is contained in:
Jordan K. Hubbard 1995-04-06 06:06:47 +00:00
parent 0264a8a9c6
commit ce0436e7a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7641

View File

@ -205,7 +205,8 @@ main(argc, argv)
++p;
else
p = shell;
iscsh = strcmp(p, "csh") ? NO : YES;
if ((iscsh = strcmp(p, "csh") ? NO : YES) == NO)
iscsh = strcmp(p, "tcsh") ? NO : YES;
}
/* set permissions */