bugfix: input_q respects - even it reaches EOF