How to alias EXIT or any CSH command

Arthur Evans arthur at sgi.com
Wed Apr 3 04:39:16 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?

I imagine so.  Try:

	alias exit 'echo blurg ; ""exit'

I know, I know--it don't make a whole boatload of
sense, but it worked on my system.  Hope it works
on yours ... 

-arthur

--
Arthur Evans -- Information Decorator, Akbar and Jeff's Documentation Hut



More information about the Comp.unix.questions mailing list