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


Message #26 received at 18186 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: "James Simmons, President & CEO" <james <at> pcug.us>, 
 Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 18186 <at> debbugs.gnu.org
Subject: Re: bug#18186: cat.c needs fixing since 1998
Date: Fri, 08 Aug 2014 15:14:52 +0200
On 08/08/2014 06:52 AM, 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.

As you referred to Cygwin - here's the case on that platform:

  $ uname -a
  CYGWIN_NT-6.1 xxxxxxxx 1.7.31(0.272/5/3) 2014-07-25 11:26 x86_64 Cygwin

  $ $ cat --version | sed 1q
  cat (GNU coreutils) 8.15

  $ printf 1234 > file1

  $ printf 5678 > file2

  $ cat file1 file2 > file12

  $ file file1 file2 file12
  file1:  ASCII text, with no line terminators
  file2:  ASCII text, with no line terminators
  file12: ASCII text, with no line terminators

  $ od -An -tx1z file12
   31 32 33 34 35 36 37 38                          >12345678<

I don't see a bug here either.

Have a nice day,
Berny




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.