diff --git a/interactive.bash b/interactive.bash index 694bf23..f0408f0 100755 --- a/interactive.bash +++ b/interactive.bash @@ -3,6 +3,10 @@ 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 @@ -10,5 +14,7 @@ else fi + + read -p "Answer?: " echo $REPLY