Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!hp4nl!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: How to alias 'exit' in csh? Message-ID: <3301@solo9.cs.vu.nl> Date: 19 Sep 89 23:09:29 GMT References: <770@rodan.acs.syr.edu> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 14 jdpeek@rodan.acs.syr.edu (Jerry Peek) writes: \I use 'su' to access an account that runs csh. I want the '.logout' file to \be executed (sourced) when I end the shell. So, I tried this in '.cshrc': \ set ignoreeof \ alias exit 'source ~/.logout; \exit' \It forces me to use exit to exit. Typing exit sources ~/.logout, but then says \ "exit: command not found." alias exit 'source ~/.logout; unalias exit; eval \exit' ...or just use `su -' to obtain a full login shell. -- creat(2) shouldn't have been create(2): |Maarten Litmaath @ VU Amsterdam: it shouldn't have existed at all. |maart@cs.vu.nl, mcvax!botter!maart