[QUESTION] While umatched error

view full story

http://www.unix.com – Hi guys...was trying to use while loop and a sentry to prompt user input again if an invalid option was entered...but somehow I got a "while" unmatched error...The code is as below: Code: #!/system/bin/sh finsh=0 while [ $finish -ne 0 ] do echo "Please select an option: " echo "1. One" echo "2. Two" echo "3. Three" echo "4. Exit" echo -n "Enter your selection: "; read opt if [  $opt -eq 1 ]; then echo "Please enter your next selection: " echo "1. ABC" echo "2. DEF" echo & (HowTos)