1( 2 while read x 3 do foobar bop || exit 1 4> done <file ) && 5outside subshell
(
while read x
do foobar bop || exit 1
> done <file ) &&
outside subshell