diff --git a/interactive.bash b/interactive.bash index 9aea60a..09644a7 100755 --- a/interactive.bash +++ b/interactive.bash @@ -2,3 +2,9 @@ read -p 'press [ENTER] to continue:' < /dev/tty echo REPLY=$REPLY + +choices=( one two three) +select choice in "${choices[@]}"; do + [[ -n $choice ]] && break +done +echo "choice is: $choice"