login built-in of 4.[12]bsd csh ignores ".logout" (w/change)
ado at elsie.UUCP
ado at elsie.UUCP
Sun Jul 22 01:45:52 AEST 1984
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)
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list