How to alias EXIT or any CSH command

Bruce Varney asg at sage.cc.purdue.edu
Tue Apr 2 08:32:01 AEST 1991


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...
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 at sage.cc.purdue.edu             ###    #####       #
PUCC                               ###                #
;-)                                 #                #
;'>                                #               ##



More information about the Comp.unix.questions mailing list