bin: reset column specification between files
* bin/common_finput.cc (job_processor::process_file): Reset col_to_read. * tests/core/ltlfilt.test: Test it. * NEWS: Mention the bug.
This commit is contained in:
parent
d697f57a97
commit
d35f7bd37c
3 changed files with 21 additions and 2 deletions
|
|
@ -305,6 +305,8 @@ job_processor::process_stream(std::istream& is,
|
|||
int
|
||||
job_processor::process_file(const char* filename)
|
||||
{
|
||||
col_to_read = 0;
|
||||
|
||||
// Special case for stdin.
|
||||
if (filename[0] == '-' && filename[1] == 0)
|
||||
return process_stream(std::cin, filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue