util-linux/tests/ts/col
Sami Kerola d8bfcb4cc5
col: fix output when first line does not have newline character
Commit I made while back and has been part of util-linux v2.30 to v2.35 made
col(1) not to output anything when first line did not have newline character.

    printf "gone from output" | col

This commit fixes the issue.  Admittedly the col source code is unnecessarily
hard to work with.  It could be a good idea to refactor the col(1) as low
priority task, Assuming refactoring is done the first commit to get that done
should add tests that exhaust all possible input handling including all command
line option directives.

Addresses: https://github.com/karelzak/util-linux/issues/422
Fixes: b6b5272b03
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2020-06-20 22:17:30 +01:00
..
multibyte tests: (col) avoid hardcoding of errno string 2019-08-27 09:37:01 +02:00
multibyte.data tests: remove input directory 2009-02-11 23:21:52 +01:00
newlines col: fix output when first line does not have newline character 2020-06-20 22:17:30 +01:00