See Convert Bash Scripts To Shell, How can I test for POSIX compliance of shell scripts? - Unix & Linux Stack Exchange, and Is there a minimally POSIX.2 compliant shell?.