# GNU bash, Version 4.4.12(1)-release
# Builtin command 'read'

while read -p "Select! (y/n): "; do
        case "$REPLY" in
                [yY])   echo "Yes selected!"; break ;;
                [nN])   echo "No selected!"; break ;;
        esac
done

# Bug 1?:       +Option read -n1
- Cursor doesn't jump automaticly to next line
# Bug 2:        +Options read -n1 -e
- Command freezes in case of typing characters like öäü' and so on. (German 
keyboard layout)

Reply via email to