You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(note: i disagree with the IFS suggestions in that article; there are enough legitimate uses for " " as an IFS that warrant not making that the default. Also, shellcheck is much better at warning you for places where having " " in the IFS list might lead to surprising behavior. this is not the case for the set options).
The text was updated successfully, but these errors were encountered:
We have a lot of bash scripts.
We should be using
set -euo pipefail
in ~all of them. We are currently not doing this nearly as much as we should.For more information on why to use
set -euo pipefail
, see here:http://redsymbol.net/articles/unofficial-bash-strict-mode/
(note: i disagree with the
IFS
suggestions in that article; there are enough legitimate uses for" "
as an IFS that warrant not making that the default. Also, shellcheck is much better at warning you for places where having " " in the IFS list might lead to surprising behavior. this is not the case for theset
options).The text was updated successfully, but these errors were encountered: