Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!news.nd.edu!mentor.cc.purdue.edu!sage.cc.purdue.edu!asg From: asg@sage.cc.purdue.edu (Bruce Varney) Newsgroups: comp.unix.questions Subject: Re: How to alias EXIT or any CSH command Message-ID: <9223@mentor.cc.purdue.edu> Date: 1 Apr 91 22:32:01 GMT References: <1991Apr1.165435.4687@berlioz.nsc.com> <9193@mentor.cc.purdue.edu> <1991Apr1.205905.9095@berlioz.nsc.com> Sender: news@mentor.cc.purdue.edu Reply-To: asg@sage.cc.purdue.edu (Bruce Varney) Organization: Purdue University Lines: 28 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... Try the following sequence of commands then: % bash bash$ alias exit='MY_STUFF_HERE; builtin exit' ;-) --------- sar.casm \'sa:r-.kaz-*m\ \sa:r-'kas-tik\ \-ti-k(*-)le-\ n [F sarcasme, fr. LL sarcasmos, fr. Gk sarkasmos, fr. sarkazein to tear flesh, bite the lips in rage, sneer, fr. sark-, sarx flesh; akin to Av thwar*s to cut] 1: a cutting, hostile, or contemptuous remark : GIBE 2: the use of caustic or ironic language - sar.cas.tic aj ### ## Courtesy of Bruce Varney ### # aka -> The Grand Master # asg@sage.cc.purdue.edu ### ##### # PUCC ### # ;-) # # ;'> # ##