News for hackers. Stuff that matters.
Re:Minimal safe Bash script template by thomasbacklund on Tuesday December 15, 2020 @01:31PM (#25433302)
Ok, I though it was to catch CTRL-c :)

trap EXIT, does work for me in ash/dash/bash, though, when just letting the code flow exit with and without errors.

Not sure your use case, but I can for sure concur that traps are very painful to get right, especially when getting into child/grandchild processes land, taking terminal session, etc in regard.

There are no comments on this comment yet.