POSIX, known as Portable Operating System Interface, is a standard UNIX shell interface. Unlike BASH, POSIX shell script is executable across different shell like DASH, KornShell, etc. Hence, the portability is there. The caveat however, is that POSIX shell is limited to a certain of syntaxes and executables to use.
Unlike BASH, POSIX Shell has a priority to be portable across different UNIX system including MacOS. Ideally, it is recommended for you to test your script across all the targeted machines, especially MacOS since they do not implement GNU shell natively.
Hence, your priority for scripting is:
This section covers only POSIX compliant shell. Hence, we consider a minimum of few shell considerations:
BASH specific features is available in my BASH guide.
Once you're ready, you may proceed to the sub-sections via the navigation bar. Please enjoy!