while true
do
read -p "Please input one numbers in[ ${numbers} ]:"execshell
if [[ ! ${execshell} =~ ^[0-9]+ ]];then
exit 0
fi
/bin/sh ./${ssharray[$execshell]}
done
正则表达式,表示包含
bash 中的正则表达式, [ [ ] ]中不能用双引号