How to alias EXIT or any CSH command
Sumon Huque
shuque at eniac.seas.upenn.edu
Tue Apr 2 07:34:03 AEST 1991
In article <1991Apr1.165435.4687 at berlioz.nsc.com> nelson at 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.
>
>Anyone have a solution?
Try this:
alias exit 'MYSTUFF; kill -HUP $$'
Recall, the variable $ contains the process number of the current shell.
More information about the Comp.unix.questions
mailing list