trap -- 'echo Exiting' EXIT
trap -- 'echo WINCH!' WINCH
trap -- 'echo Exiting' EXIT
trap -- 'echo WINCH!' WINCH
trap -- 'echo Exiting' EXIT
trap -- 'echo WINCH!' WINCH
Done
Exiting