drop the vague desire of /bin/sh compat
Many part of the code/handlers are not compatible with pure /bin/sh Accept that and promote bash-ism syntactic sugar, code simplicity and performance improvements it brings (or reconsider using perl/python/... for some wisely chosen parts of the code)
(from redmine: created on 2016-03-18)