How to alias EXIT or any CSH command
Bruce Varney
asg at sage.cc.purdue.edu
Tue Apr 2 04:03:49 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 normal_exit 'exit'
alias exit 'MY_STUFF_HERE; normal_exit'
They have to be in that order I believe, but that should work.
Course, if you used bash (a MUCH better shell) you could do:
alias exit='MY_STUFF_HERE; builtin exit'
If you would like info on bash, just ask me.
asg at sage.cc.purdue.edu
Bruce
---------
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