Thank you Paul, Andreas and Kevin.
Both the here document solution and the Process substitution solution both
work well. I haven't had a good look to see the subtle differences between
the two yet.
Thank you again.
--
View this message in context:
http://www.nabble.com/while-read-subcommand-pr
Paul Jarc wrote:
>
>
> Can you explain what was unsatisfactory about the alternatives given
> in the FAQ, so we have a better idea of what would be acceptable?
>
> Here's one possibility:
> ... | { while ...; do var=...; done; use "$var"; }
>
>
Thanks for the reply, and a possible solution