Use set -o so that sh xxx.sh behave same as ./xxx.sh