Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site elsie.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!houxm!houxz!vax135!cornell!uw-beaver!tektronix!hplabs!hao!seismo!rlgvax!cvl!elsie!ado From: ado@elsie.UUCP Newsgroups: net.bugs.4bsd Subject: Re: login built-in of 4.[12]bsd csh ignores ".logout" (w/change) Message-ID: <1124@elsie.UUCP> Date: Sat, 21-Jul-84 11:45:52 EDT Article-I.D.: elsie.1124 Posted: Sat Jul 21 11:45:52 1984 Date-Received: Mon, 23-Jul-84 02:08:49 EDT References: <1095@elsie.UUCP>, <138@cbosgd.UUCP> Organization: NIH-LEC, Bethesda, MD Lines: 22 elsie!ado-- > If you want a "source ~/.logout" to be done on "login" commands, > add this line to your ".login" file: > alias login 'source ~/.logout; unalias login; eval login \!*' cbosgd!mark-- > ...Here's a better way to do it: > alias login 'source ~/.logout; "login" \!*' The second alias command above acts more like "su" than "login". (To see what I mean: set up the alias; ensure that you have a "~/.logout" file; use the login alias; and then use logout.) To have it act like "login" you'd alias login 'source ~/.logout; exec login \!*' The first alias above causes the built-in login command of the csh to be used; the second and third result in direct execution of "/bin/login". So with the first alias above you'll still get the csh's There are stopped jobs warning when appropriate; you'll miss the warning with the other aliases. Keeping the warning was the motive for having the "complicated" alias. -- ...decvax!allegra!umcp-cs!elsie!ado (301) 496-5688 (DEC, VAX and Elsie are Digital Equipment Corp. and Borden's trademarks)