Not weird, but according to man bash
.
It usually happens with while
and read
and a further condition, that you better have two commands between the while
- do
, and often there is nothing left for the do
- done
, to be filled with a nop command.
See the example