More fine-grained testing of the possible shell execution options. First, we test the noglob option. $ cat > test.sh << EOF > set -f > touch a.txt b.txt > ls *.txt > EOF $ sh test.sh ls: cannot access '*.txt': No such file or directory [2] $ msh test.sh ls: cannot access '*.txt': No such file or directory [2] No unset variable option. $ cat > test.sh << EOF > echo "The variable is: \$UNSETVAR" > set -u > echo \$UNSETVAR > EOF $ sh test.sh The variable is: test.sh: line 3: UNSETVAR: unbound variable [1] $ msh test.sh The variable is: UNSETVAR: unbound variable [1]