Browse Source

interactive

master
pvincent 4 days ago
parent
commit
04a80d5522
  1. 6
      interactive.bash

6
interactive.bash

@ -2,3 +2,9 @@
read -p 'press [ENTER] to continue:' < /dev/tty read -p 'press [ENTER] to continue:' < /dev/tty
echo REPLY=$REPLY echo REPLY=$REPLY
choices=( one two three)
select choice in "${choices[@]}"; do
[[ -n $choice ]] && break
done
echo "choice is: $choice"
Loading…
Cancel
Save