3 ms·One should also create traps on exit, to revert the system to a good state in the event of pipefail.by _asummers 10y agoOne should also create traps on exit, to revert the system to a good state in the event of pipefail.