Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 3/23/84; site cbosgd.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!cbosgd!mark From: mark@cbosgd.UUCP (Mark Horton) Newsgroups: net.bugs.4bsd Subject: Re: login built-in of 4.[12]bsd csh ignores ".logout" (w/change) Message-ID: <138@cbosgd.UUCP> Date: Wed, 18-Jul-84 11:47:20 EDT Article-I.D.: cbosgd.138 Posted: Wed Jul 18 11:47:20 1984 Date-Received: Fri, 20-Jul-84 04:58:24 EDT References: <1095@elsie.UUCP> Organization: AT&T Bell Laboratories, Columbus Lines: 13 > 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 \!*' > > (The fact that both the unalias AND the eval are needed above seems like > a bug to me; who knows?) Actually, this isn't a bug, it's just that you get a recursive invocation of the alias if you don't disable it. Here's a better way to do it: alias login 'source ~/.logout; "login" \!*' Whenever you build an alias around itself, if the recursion isn't head recursion, you'll need to quote the name.