Writing bash scripts becomes a lot less error prone with shellcheck[1]. Syntastic for vim integrates well with it.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;koalaman&#x2F;shellcheck" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;koalaman&#x2F;shellcheck</a>