From 6c98c9a57c43835f5cce9675eee5ef245c426a07 Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 29 Oct 2025 08:45:33 +0400 Subject: [PATCH] interactive --- interactive.bash | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) 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