while [ "" == "" ]; do if [ -z ${1+x} ]; then break; else echo "The positional parameter 1 is set to '$1'"; fi shift 1 done