I think functions require "bash", and /bin/sh is "dash" by default. But it could be done inline in place of syntax_check.
I think functions require "bash", and /bin/sh is "dash" by default. But it could be done inline in place of syntax_check.