#!/bin/ksh echo "Your choice? \c" read s_choice while [ "${s_choice}" = "" ] do echo "Your choice? \c" read s_choice done while [ ${s_choice} -lt 1 ] || [ ${s_choice} -gt 5 ] do echo "Your choice? \c" read s_choice while [ "${s_choice}" = "" ] do echo "Your choice? \c" read s_choice done done echo Your choice was: ${s_choice} exit