15 ms·
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
by thomasbacklund 6y ago
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.