]> err.no Git - util-linux/commit
column: EOF handling bug
authorSami Kerola <kerolasa@iki.fi>
Sat, 9 Oct 2010 17:59:48 +0000 (19:59 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Oct 2010 07:38:17 +0000 (09:38 +0200)
commit80fa094c9016e95c70224d6e9a918a96d5131129
treea0e329adca65189666e2cb947c16ba7d86d7f7e3
parent973af806428c0f853ac0241ab46faee6ccdaab26
column: EOF handling bug

For the last line of the file lenght of line should be determined
where the EOF is instead of new line. Old output was

$ printf "1 2\n3" | column -t
column: line too long
1 2

which this commit will change to

$ printf "1 2\n3" | column -t
1  2
3

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/column.c