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: Bernhard Voelker
Subject: bug#18186: cat.c needs fixing since 1998
Date: Fri, 08 Aug 2014 15:14:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

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





reply via email to

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