Fix EOF in cat.