3 ms·
I toyed with this idea a little while back; I wrote some very critical tooling in bash, and wanted to make certain that no matter where in the program I encount
by GauntletWizard 10y ago
I toyed with this idea a little while back; I wrote some very critical tooling in bash, and wanted to make certain that no matter where in the program I encountered an error, the second try would work (presuming I had diagnosed the error).
My thought was: These scripts are running with set -euxo pipefail. I can insert a 'false' line between any two lines, run the script, then remove it and run it again and I should still get the correct results. I never finished writing this test tool, but I still think it's a good idea I want to get back to.