Testing if-then-else constructs $ cat > test.sh < if echo hello > then > echo world > fi > EOF $ msh test.sh hello world $ cat > test.sh < if ls --malformed-option 2>1 > /dev/null > then > echo world > else > echo goodbye > fi > EOF $ sh test.sh goodbye $ msh test.sh goodbye