title: Making Unix shell scripts POSIX compliant
body: <p>I have been working on a shell script to automate some tasks. What is the best way to make sure the shell script would run without any issues in most of the platforms. For ex., I have been using <code>echo -n</code> command to print some messages to the screen without a trailing new line and the <code>-n</code> switch doesn't work in some ksh shells. I was told the script must be POSIX compliant. How do I make sure that the script is POSIX compliant. Is there a tool? Or is there a shell that supports only bare minimum POSIX requirements?</p>