awk/testdir/t.exit1

16 lines
271 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
BEGIN {
print "this is before calling myabort"
myabort(1)
print "this is after calling myabort"
}
function myabort(n) {
print "in myabort - before exit", n
exit 2
print "in myabort - after exit"
}
END {
print "into END"
myabort(2)
print "should not see this"
}