diff --git a/interactive.bash b/interactive.bash index f0408f0..9aea60a 100755 --- a/interactive.bash +++ b/interactive.bash @@ -1,20 +1,4 @@ #!/usr/bin/env bash -echo $- -[[ $- == *i* ]] && echo 'Interactive' || echo 'Not interactive' - -read -p 'press [ENTER] to continue deleting line' < /dev/tty - - - -if test -t 1; then - echo stdout -else - echo NO -fi - - - - -read -p "Answer?: " -echo $REPLY +read -p 'press [ENTER] to continue:' < /dev/tty +echo REPLY=$REPLY