]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rev: fix new line regression
authorSami Kerola <kerolasa@iki.fi>
Tue, 10 Sep 2013 19:51:14 +0000 (20:51 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Sep 2013 09:05:34 +0000 (11:05 +0200)
commitd267fdb8540202f77efb28fdf5dddd9826626757
tree9863c17a7422fcf939c1397937fade6b120a9fe6
parent050babd4e426d9a9547a66008b445a8e4e85d0f1
rev: fix new line regression

Commit 4b4eb34004378fe70259acd8f2f859e7b5cc3726 made output incorrect for
input lines that does not have new line.  For example

$ printf "a b c\n1 2 3" | rev
c b a
 2 13

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/rev.c