13
2
Reading input within a while read loop does not seem to work
while read line
do
echo "get some input from the user"
read response
done < some_file.txt
execution does not pause like it would had the read been outside the loop. Why is this? Is there a workaround for reading input within a while read loop?
In my case I had
while
reading from a pipe... and then I used redirection to read from stdin:read something < %terminal
. – eftshift0 – 2019-10-25T02:52:01.403