Posted Dec 19, 2010 13:22 UTC (Sun) by pkern
In reply to: checkbashisms
Parent article: Introducing the "Debian's Automated Code Analysis" (DACA) project
That's a valid option of course. However, if it's only a small bit of work you can save a bit of time on every invocation of the script, by using a faster shell than bash as `/bin/sh'.
As long as you intentionally expect bash with its feature set for a script, it's fine to just write `/bin/bash' as your interpreter. This work is supposed to check for the accidental expectation that the POSIX `/bin/sh' has the bash feature set.
to post comments)