diff --git a/interactive.bash b/interactive.bash new file mode 100755 index 0000000..5a9d4c7 --- /dev/null +++ b/interactive.bash @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +echo $- +[[ $- == *i* ]] && echo 'Interactive' || echo 'Not interactive' +read -p "Answer?: " +echo $REPLY