Use the Unofficial Bash Strict Mode (Unless You Looove Debugging)
samedi 19 juillet 2014 à 00:08 CAFAI, le 19/07/2014 à 00:08
I call this the unofficial bash strict mode. This causes bash to behave in a way that makes many classes of subtle bugs impossible. You'll spend much less time debugging, and also avoid having unexpected complications in production.
There is a short-term downside: these settings make certain common bash idioms harder to work with. They all have simple workarounds, detailed below
(Permalink)
I call this the unofficial bash strict mode. This causes bash to behave in a way that makes many classes of subtle bugs impossible. You'll spend much less time debugging, and also avoid having unexpected complications in production.
There is a short-term downside: these settings make certain common bash idioms harder to work with. They all have simple workarounds, detailed below
(Permalink)