checkbashisms
checkbashisms
Posted Dec 19, 2010 13:22 UTC (Sun) by pkern (subscriber, #32883)In reply to: checkbashisms by dlang
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.
