I've got a ksh script that calls:
while read LINE do...
The input has been redirected (not shown) so that it reads input from a pipe.
The problem is that when the writer to the pipe closes, read returns false and exits the loop.
I want it to keep reading after the pipe is closed (the writing process may re-start from time to time, causing this situation).
I tried wrapping the whole read LINE within a subshell and looping over the whole subshell, but read just get an empty line after the pipe is closed rather than blocking until there is more input as it does when the script starts normally.