>>/10294/
> while read $ifile; do
Oops, no no. Sorry.
Belay that.
"while read ifile; do"
is just fine, and it runs here just perfectly fine.

So it's a mystery to me how JbRNzN3J throws errors with you, but 99TXGmW7 runs through.

Well, the world is full of mysteries ... so nothing new here.
Kek!