To make sure that your shell script is always run from a standard Bourne shell have the line
#!/bin/sh
as the first line of the script.