0

I copied a script from bash tldp tutorial web-site. http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-9.html Trying to run this, I am getting the following error: only "else part" is working.

OPTIONS="Hello Quit"
           select opt in $OPTIONS; do
               if [ "$opt" = "Quit" ]; then
                echo done
                exit
               elif [ "$opt" = "Hello" ]; then
                echo "Hello World"
               else
                clear
                echo bad option
               fi
           done
Soren A
  • 7,191
Josef Klimuk
  • 1,636

0 Answers0