interactive FILEs may return normal characters after EOF is read
fix a bug introduced in prev commit