** file data **
1
2
3
4
5
** case 1 ( read -u fd ) **
from file: 1
your input: aaa
from file: 2
your input: bbb
from file: 3
your input: ccc
from file: 4
your input: ddd
from file: 5
your input: eee
** case 2 ( read <&fd ) **
from file: 1
your input: fff
from file: 2
your input: ggg
from file: 3
your input: hhh
from file: 4
your input: iii
from file: 5
your input: jjj
** case 3 ( read -u temporal fd ) **
from file: 1
your input: kkk
from file: 2
your input: lll
from file: 3
your input: mmm
from file: 4
your input: nnn
from file: 5
your input: ooo