GNU bug report logs - #18186
cat.c needs fixing since 1998

Previous Next

Package: coreutils;

Reported by: "James Simmons" <james <at> pcug.us>

Date: Sun, 3 Aug 2014 20:19:02 UTC

Severity: normal

Tags: moreinfo

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: "James Simmons, President & CEO" <james <at> pcug.us>, Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 18186 <at> debbugs.gnu.org
Subject: bug#18186: cat.c needs fixing since 1998
Date: Fri, 08 Aug 2014 06:27:41 -0600
[Message part 1 (text/plain, inline)]
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

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 6 years and 216 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.