https://citizen428.net/blog/bash-error-handling-with-trap/
Anonymous
Don't force yourself or others to reimplement functionality.