1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env sh ec=0 if [ $# -ge 1 ] ; then "$@" ec=$? fi printf "Press enter to exit..." read exit $ec