For documentation purposes, this is the exact thing I tried to run:
$ < <(echo hi) while read a; do echo "got $a"; done -bash: syntax error near unexpected token `do' $ while read a; do echo "got $a"; done < <(echo hi) got hi
$ zsh -c '< <(echo hi) while read a; do echo "got $a"; done' got hi
For documentation purposes, this is the exact thing I tried to run:
Maybe there is another way...