util-linux/text-utils
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
..
Makemodule.am more: use libmagic to identify binary files 2020-05-12 10:22:09 +02:00
col.1 Manual pages: order NOTES / HISTORY / BUGS / EXAMPLE consistently 2020-05-22 10:25:50 +02:00
col.c col: fix output when first line does not have newline character 2020-06-20 22:17:30 +01:00
colcrt.1 Manual pages: rename EXAMPLE section to EXAMPLES 2020-05-28 14:51:54 +02:00
colcrt.c colcrt: make seek to \n more robust 2019-09-02 11:53:10 +02:00
colrm.1 Manual pages: order AUTHORS / COPYRIGHT / SEE ALSO / AVAILABILITY consistently 2020-05-22 10:25:49 +02:00
colrm.c misc: replaces atexit(close_stdout) with new close_stdout_atexit() 2019-06-17 15:46:10 +02:00
column.1 doc: text-utils/*: fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
column.c column: pass control struct to local_wcstok() 2019-08-21 15:00:16 +02:00
hexdump-conv.c hexdump: fix typo, dcl instead of dc1 2020-03-09 10:54:28 +01:00
hexdump-display.c [clang-tidy] fix wrong *cmp usage 2020-04-20 13:21:00 -07:00
hexdump-parse.c hexdump: fix potential null pointer dereference warnings 2018-12-10 21:48:00 +00:00
hexdump.1 doc: text-utils/*: fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
hexdump.c docs: improve size arguments description in --help output 2020-02-05 11:01:36 +01:00
hexdump.h hexdump: add header file guards [lgtm scan] 2019-09-20 16:13:52 +02:00
line.1 docs: (man) remove double quotes (") in .SH lines 2020-05-19 12:15:34 +02:00
line.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
more.1 Manual pages: order AUTHORS / COPYRIGHT / SEE ALSO / AVAILABILITY consistently 2020-05-22 10:25:49 +02:00
more.c more: avoid libmagic telling an empty file is binary 2020-05-25 14:16:45 +02:00
pg.1 Manual pages: order AUTHORS / COPYRIGHT / SEE ALSO / AVAILABILITY consistently 2020-05-22 10:25:49 +02:00
pg.c [clang-tidy] do not use else after return 2020-04-20 13:20:59 -07:00
rev.1 rev: (man) add note about limitations 2020-03-09 11:03:30 +01:00
rev.c rev: report line on error 2020-03-04 13:20:56 +01:00
ul.1 Manual pages: order NOTES / HISTORY / BUGS / EXAMPLE consistently 2020-05-22 10:25:50 +02:00
ul.c [clang-tidy] do not use else after return 2020-04-20 13:20:59 -07:00