How to alias EXIT or any CSH command

Christos S. Zoulas christos at theory.tn.cornell.edu
Tue Apr 2 09:26:55 AEST 1991


In article <9223 at mentor.cc.purdue.edu> asg at sage.cc.purdue.edu (Bruce Varney) writes:
>In article <1991Apr1.205905.9095 at berlioz.nsc.com> nelson at 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 at ee.cornell.edu | Cornell University, Ithaca NY 14853.         |
| christos at crnlee.bitnet  | Phone: (607) 255 0302 |  Fax: (607) 254 4565 |



More information about the Comp.unix.questions mailing list