> That advice can cause substantial headache on Ubuntu/Debian, where the Almquist shell is /bin/sh. This does not implement much of bash and will fail spectacularly on the simplest of scripts.
That's not really a problem as long as you use #!/bin/bash shebang, and there is nothing wrong in doing that.