Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!hsdndev!dartvax!eleazar.dartmouth.edu!mjm From: mjm@eleazar.dartmouth.edu (Andy Behrens) Newsgroups: comp.unix.questions Subject: Re: How to alias EXIT or any CSH command Message-ID: <1991Apr2.185034.2659@dartvax.dartmouth.edu> Date: 2 Apr 91 18:50:34 GMT References: <1991Apr1.165435.4687@berlioz.nsc.com> Sender: news@dartvax.dartmouth.edu (The News Manager) Reply-To: andyb@coat.com (Andy Behrens) Organization: Burlington Coat Factory Lines: 24 nelson@berlioz.nsc.com (Taed Nelson) writes: >I have reason to desire an alias for the CSH command EXIT. Since > the executable version doesn't exist anywhere, I can't do: > alias exit 'MY_STUFF_HERE; /usr/bin/exit' > or whatever. Well, since nobody else has come up with a solution that generalizes to commands other than exit: set Exit=exit alias exit 'MY_STUFF_HERE; $Exit' -- If you've got a hammer, If the only tool you have find a nail. is a hammer, you tend to see (George Bush, January 29, 1991) every problem as a nail. (Abraham Maslow) +-------------------+ | Andy Behrens | or: andyb%coat.com@dartmouth.edu | andyb@coat.com | bitnet: andyb%coat.com@dartcms1 +-------------------+ uucp: {uunet,rutgers}!dartvax!coat.com!andyb Burlington Coat, HC 61 Box 1B, Lebanon, N.H. 03766 (603) 448-5000