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