Subject: bug#18186: cat.c needs fixing since 1998

From: Eric Blake <[email-masked]>
Date: Fri, 08 Aug 2014 06:27:41 -0600

On 08/07/2014 10:52 PM, James Simmons, President & CEO wrote:
> Each file has 1 line with no newline. concatenation should NOT have a
> newline.
> That is the point of concatenation.

The POSIX definition of line requires a newline at the end; if you have
text but no newline, the file is not a text file.  However, cat is not a
line-oriented utility, so it should not be caring whether the input
files are text based, and should not be injecting newlines into the
output if the input did not have newlines.

Please show us the content of the files you claim are being
mis-concatentated using something like 'od -tx1z', as well as the
contents of the output file, so that we can try to reproduce your issue.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org