In POSIX sh, how to preserve variables set in a 'while read' loop when the input is continuous (event watcher)? In POSIX sh, how to preserve variables set in a 'while read' loop when the input is continuous (event watcher)? shell shell