3 ms·
This article has some good points, and I was glad to learn about the "trap" command, to clean up temp files on unexpected exit. There is also a little overlap
by combatentropy 10y ago
This article has some good points, and I was glad to learn about the "trap" command, to clean up temp files on unexpected exit.
There is also a little overlap with this "unofficial bash strict mode," which I now use all the time:
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
--- http://redsymbol.net/articles/unofficial-bash-strict-mode/ http://redsymbol.net/articles/unofficial-bash-strict-mode/