私はシェルスクリプトの初心者で、これについて疑問に思っています。
#!/usr/local/bin/bash
number=5
echo "Enter 'yes' to continue, 'no' to abort:"
read choice
if [ $choice = yes ]; then
while [ $number -lt 10 ]; do
echo "The script is now looping!"
done
elif [ $choice = no ]; then
echo "Loop aborted"
else
echo "Please say 'yes' or 'no'"
read choice
# What now?
fi
「yes」または「no」を指定しない場合、$ choice(13行目)を再チェックするifステートメントをどのように処理しますか?
ありがとうございました。