I'd like to trap for certain events (e.g. ctrl-c, etc.) within a function I defined within my $ENV file (i.e. .kshrc file) and exit the function. The problem is is that if I use "exit", it terminates the window I'm calling it from.
example:
trap echo "...funt. terminated"; exit" 1 2 15
Can I exit from a function the way I normally would in a script file?
example:
trap echo "...funt. terminated"; exit" 1 2 15
Can I exit from a function the way I normally would in a script file?