1BEGIN {
2 print "this is before calling myabort"
3 myabort(1)
4 print "this is after calling myabort"
5}
6function myabort(n) {
7 print "in myabort - before exit", n
8 exit 2
9 print "in myabort - after exit"
10}
11END {
12 print "into END"
13 myabort(2)
14 print "should not see this"
15}
16