[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
- bug#18186: cat.c needs fixing since 1998, James Simmons, 2014/08/03
- bug#18186: cat.c needs fixing since 1998, Paul Eggert, 2014/08/03
- Message not available
- bug#18186: cat.c needs fixing since 1998, Paul Eggert, 2014/08/07
- bug#18186: cat.c needs fixing since 1998, James Simmons, President & CEO, 2014/08/08
- bug#18186: cat.c needs fixing since 1998, Paul Eggert, 2014/08/08
- bug#18186: cat.c needs fixing since 1998, Eric Blake, 2014/08/08
- bug#18186: cat.c needs fixing since 1998,
Bernhard Voelker <=
- bug#18186: cat.c needs fixing since 1998, Linda Walsh, 2014/08/08
bug#18186: cat.c needs fixing since 1998, Eric Blake, 2014/08/04