@ -1,12 +1,10 @@
#!/usr/bin/env bash
stty /dev/tty
read -p 'press [ENTER] to continue:'
read -p 'press [ENTER] to continue:' </dev/tty
echo REPLY=$REPLY
choices=( one two three)
select choice in "${choices[@]}"; do
[[ -n $choice ]] && break
done
done </dev/tty
echo "choice is: $choice"