bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18186: cat.c needs fixing since 1998


From: Eric Blake
Subject: bug#18186: cat.c needs fixing since 1998
Date: Fri, 08 Aug 2014 06:27:41 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]