Newsgroups: comp.unix.questions Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!theory.tn.cornell.edu!christos From: christos@theory.tn.cornell.edu (Christos S. Zoulas) Subject: Re: How to alias EXIT or any CSH command Message-ID: <1991Apr1.232655.27031@batcomputer.tn.cornell.edu> Sender: news@batcomputer.tn.cornell.edu Nntp-Posting-Host: theory.tn.cornell.edu Organization: Electrical Engineering, Cornell University, Ithaca NY References: <9193@mentor.cc.purdue.edu> <1991Apr1.205905.9095@berlioz.nsc.com> <9223@mentor.cc.purdue.edu> Date: Mon, 1 Apr 1991 23:26:55 GMT In article <9223@mentor.cc.purdue.edu> asg@sage.cc.purdue.edu (Bruce Varney) writes: >In article <1991Apr1.205905.9095@berlioz.nsc.com> nelson@berlioz.nsc.com (Taed Nelson) writes: >}>}I have reason to desire an alias for the CSH command EXIT. >} >}>alias normal_exit 'exit' >}>alias exit 'MY_STUFF_HERE; normal_exit' >} >}Nope, still gives an Alias Loop... No flames please... alias exit 'MY_STUFF_HERE; kill -9 $$' christos -- +------------------------------------------------------------------------+ | Christos Zoulas | 389 Theory Center, Electrical Engineering, | | christos@ee.cornell.edu | Cornell University, Ithaca NY 14853. | | christos@crnlee.bitnet | Phone: (607) 255 0302 | Fax: (607) 254 4565 |