From 923a9c2693b38790d8c54ed0b4a7b77935124a19 Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 29 Oct 2025 08:42:38 +0400 Subject: [PATCH] interactive --- interactive.bash | 6 ++++++ 1 file changed, 6 insertions(+) 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