From unknown Sat Jun 21 05:14:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18186 <18186@debbugs.gnu.org> To: bug#18186 <18186@debbugs.gnu.org> Subject: Status: cat.c needs fixing since 1998 Reply-To: bug#18186 <18186@debbugs.gnu.org> Date: Sat, 21 Jun 2025 12:14:59 +0000 retitle 18186 cat.c needs fixing since 1998 reassign 18186 coreutils submitter 18186 "James Simmons" severity 18186 normal tag 18186 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 03 16:18:58 2014 Received: (at submit) by debbugs.gnu.org; 3 Aug 2014 20:18:58 +0000 Received: from localhost ([127.0.0.1]:56262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XE2F7-0006t8-5S for submit@debbugs.gnu.org; Sun, 03 Aug 2014 16:18:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59764) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDydN-00015R-Ko for submit@debbugs.gnu.org; Sun, 03 Aug 2014 12:27:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDydD-0001Xz-1n for submit@debbugs.gnu.org; Sun, 03 Aug 2014 12:27:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDydC-0001Xv-Uk for submit@debbugs.gnu.org; Sun, 03 Aug 2014 12:27:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDyd7-0001ow-Km for bug-coreutils@gnu.org; Sun, 03 Aug 2014 12:27:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDyd2-0001Tu-Ja for bug-coreutils@gnu.org; Sun, 03 Aug 2014 12:27:29 -0400 Received: from p3plsmtpa06-07.prod.phx3.secureserver.net ([173.201.192.108]:58226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDyd2-0001Rg-6Q for bug-coreutils@gnu.org; Sun, 03 Aug 2014 12:27:24 -0400 Received: from Home2 ([67.80.157.15]) by p3plsmtpa06-07.prod.phx3.secureserver.net with id aGTG1o00C0LCosK01GTHXs; Sun, 03 Aug 2014 09:27:18 -0700 Message-ID: <9FC1951CCF3644BBB33997571DFB84E6@Home2> From: "James Simmons" To: Subject: cat.c needs fixing since 1998 Date: Sun, 3 Aug 2014 12:26:54 -0400 Organization: The Personal Computer User Group, International MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_006E_01CFAF16.361AEFB0" X-Priority: 1 X-MSMail-Priority: High Importance: High X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 03 Aug 2014 16:18:54 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is a multi-part message in MIME format. ------=_NextPart_000_006E_01CFAF16.361AEFB0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Way back in 1998, Earnie Boyd asked about the binary option for concatenati= ng files in Cygwin. Now, almost 16 years later, I find that I need the binary option for cat, a= nd I also find that cat.c still does NOT have the option! Here is a copy of= that long-ago request and the response from Don Baarda. The work-around that Don suggested is not an option, since I need this in a= bash script. (Cygwin automatically runs Bash as it=E2=80=99s shell.) When will the cat.c code be updated to function as it did in original Unix?= ( cat [file1.. file2.. file n] >>output At the very least, a binary option should be added to the code. Regards, James A. Simmons, President & CEO The Personal Computer User Group, International james@pcug.us http://www.james-simmons.info http://www.pcug.us Re: best way to append binary files together? a.. To: "BAARDA, Don" =20 b.. Subject: Re: best way to append binary files together?=20 c.. From: Earnie Boyd =20 d.. Date: Wed, 2 Dec 1998 12:07:21 -0800 (PST)=20 e.. Cc: cygwin users =20 f.. Reply-To: earnie_boyd at yahoo dot com ---------------------------------------------------------------------------= ----- ---"BAARDA, Don" wrote: > >=20 > I know I can turn off text mode with either the CYGWIN environment variable > or by using mount options, but I'd be interested in what the best way of > doing this is. >=20 IMHO fix the cat.c source. The workaround I would use would be to SET CYGWIN=3Dbinmode before starting bash. =3D=3D - \\||// -------------------o0O0--Earnie--0O0o------------------- -- earnie_boyd@yahoo.com -- -- http://www.freeyellow.com/members5/gw32/index.html -- ----------------------ooo0O--O0ooo---------------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com ------=_NextPart_000_006E_01CFAF16.361AEFB0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Way back in 1998, Earnie Boyd asked about the binary option for=20 concatenating files in Cygwin.
Now, almost 16 years later, I find that I need the binary option for c= at,=20 and I also find that cat.c still does NOT have the option! Here is a copy o= f=20 that long-ago request and the response from Don Baarda.
The work-around that Don suggested is not an option, since I need this= in a=20 bash script. (Cygwin automatically runs Bash as it=E2=80=99s shell.)
 
When will the cat.c code be updated to function as it did in original = Unix?=20 ( cat [file1.. file2.. file n] >>output
At the very least, a binary option should be added to the=20 code.
 
Regards,
James A. Simmons, President & CEO
The Personal Computer User Group, International
http://www.james-simmons.info
 
 

Re: best way to append binary files=20 together?

  • To: "BAARDA, Don" <dbaarda= at=20 baea dot com dot au>=20
  • Subject: Re: best way to appe= nd=20 binary files together?=20
  • From: Earnie Boyd <earnie_= boyd at=20 yahoo dot com>=20
  • Date: Wed, 2 Dec 1998 12:07:2= 1 -0800=20 (PST)=20
  • Cc: cygwin users <gnu-win3= 2 at=20 cygnus dot com>=20
  • Reply-To: earnie_boyd at yaho= o dot=20 com

---"BAARDA, Don" <dbaarda@baea.com.au> wrote:
>
>=20
> I know I can turn off text mode with either the CYGWIN environment
variable
> or by using mount options, but I'd be interested in what the best
way of
> doing this is.
>=20

IMHO fix the cat.c source.  The workaround I would use would be to SET
CYGWIN=3Dbinmode before starting bash.

=3D=3D
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd@yahoo.com               --
-- http://ww=
w.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http=
://mail.yahoo.com

------=_NextPart_000_006E_01CFAF16.361AEFB0-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 03 16:43:08 2014 Received: (at 18186) by debbugs.gnu.org; 3 Aug 2014 20:43:08 +0000 Received: from localhost ([127.0.0.1]:56296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XE2cV-0007Xx-Nl for submit@debbugs.gnu.org; Sun, 03 Aug 2014 16:43:07 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:38843) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XE2cS-0007XS-UB for 18186@debbugs.gnu.org; Sun, 03 Aug 2014 16:43:06 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 16FB7A60001; Sun, 3 Aug 2014 13:42:59 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FNkEwc1V51NQ; Sun, 3 Aug 2014 13:42:50 -0700 (PDT) Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 65D7639E801F; Sun, 3 Aug 2014 13:42:50 -0700 (PDT) Message-ID: <53DE9EC9.2020808@cs.ucla.edu> Date: Sun, 03 Aug 2014 13:42:49 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: James Simmons , 18186@debbugs.gnu.org Subject: Re: bug#18186: cat.c needs fixing since 1998 References: <9FC1951CCF3644BBB33997571DFB84E6@Home2> In-Reply-To: <9FC1951CCF3644BBB33997571DFB84E6@Home2> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 18186 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) James Simmons wrote: > When will the cat.c code be updated to function as it did in original Unix? It already does that, as far as I can tell. If not, please supply a simple test case illustrating the problem, using the most recent version of coreutils. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 04 09:26:13 2014 Received: (at 18186) by debbugs.gnu.org; 4 Aug 2014 13:26:13 +0000 Received: from localhost ([127.0.0.1]:56882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEIHE-0002hB-3U for submit@debbugs.gnu.org; Mon, 04 Aug 2014 09:26:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33847) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEIH9-0002gx-HF for 18186@debbugs.gnu.org; Mon, 04 Aug 2014 09:26:09 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s74DQ5jK013534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Aug 2014 09:26:05 -0400 Received: from [10.3.113.131] (ovpn-113-131.phx2.redhat.com [10.3.113.131]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s74DQ44Z024953; Mon, 4 Aug 2014 09:26:04 -0400 Message-ID: <53DF89EC.2000706@redhat.com> Date: Mon, 04 Aug 2014 07:26:04 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: James Simmons , 18186@debbugs.gnu.org Subject: Re: bug#18186: cat.c needs fixing since 1998 References: <9FC1951CCF3644BBB33997571DFB84E6@Home2> In-Reply-To: <9FC1951CCF3644BBB33997571DFB84E6@Home2> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5dxwkm9VjewPeLhhUL3g811ajhtfOKxlA" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 18186 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5dxwkm9VjewPeLhhUL3g811ajhtfOKxlA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/03/2014 10:26 AM, James Simmons wrote: > Way back in 1998, Earnie Boyd asked about the binary option for concate= nating files in Cygwin. > Now, almost 16 years later, I find that I need the binary option for ca= t, and I also find that cat.c still does NOT have the option! Here is a c= opy of that long-ago request and the response from Don Baarda. > The work-around that Don suggested is not an option, since I need this = in a bash script. (Cygwin automatically runs Bash as it=E2=80=99s shell.)= Have you also asked on the Cygwin list? I just barely released coreutils-8.23-1 for cygwin last weekend, and would prefer to have feedback on the cygwin list before deciding if the problems you are encountering are an issue with the downstream patches or something that needs to be pushed upstream. Most likely, cygwin is already doing the right thing by _always_ doing the concatenation in binary mode. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --5dxwkm9VjewPeLhhUL3g811ajhtfOKxlA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJT34nsAAoJEKeha0olJ0NqCh8H/3JnwBHHEeqWV6bwBDmAAi/u Bpspf2LMbqZkwbCyasJTZ1pfjGpWtM+djSuJjaDqzUbkRW0l39+tyN1mxZCEHl/z pNiJ1Ss7vM2wt97Qror0aQDFpEXVzyzVfgNU4mHWMu3ohvzImEtmi9aiLnVhiqgK j6Ry1cy1mYWCdeQlxgTJEb03lNO7Y339vseATLpKEam6wYLo0mLdClf8gjlF63SX DHOkfgCxn6z2PUfMNyO53KrSrr9btkGd+Yp0zvkHxN17oJPfWGPNlRXip0U9Mo7g GH6p2s/etrTf5zBI6rDizdEv40nfcCLEBJP1vTBNXETcYLaiOddvkmsc/dKVzlw= =VoqB -----END PGP SIGNATURE----- --5dxwkm9VjewPeLhhUL3g811ajhtfOKxlA-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 07 20:00:57 2014 Received: (at 18186) by debbugs.gnu.org; 8 Aug 2014 00:00:57 +0000 Received: from localhost ([127.0.0.1]:34436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFXc8-0007mo-EG for submit@debbugs.gnu.org; Thu, 07 Aug 2014 20:00:56 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:38460) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFXc5-0007mU-5a for 18186@debbugs.gnu.org; Thu, 07 Aug 2014 20:00:54 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 73CDAA6000D; Thu, 7 Aug 2014 17:00:46 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rxndDHG0Jrsb; Thu, 7 Aug 2014 17:00:37 -0700 (PDT) Received: from [192.168.1.9] (pool-71-177-17-123.lsanca.dsl-w.verizon.net [71.177.17.123]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id C99E3A6000B; Thu, 7 Aug 2014 17:00:37 -0700 (PDT) Message-ID: <53E41325.5000507@cs.ucla.edu> Date: Thu, 07 Aug 2014 17:00:37 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: "James Simmons, President & CEO" Subject: Re: bug#18186: cat.c needs fixing since 1998 References: <9FC1951CCF3644BBB33997571DFB84E6@Home2> <53DE9EC9.2020808@cs.ucla.edu> <474E6F0FBFD240FE853B5A2AD6E563A6@JamesHP> In-Reply-To: <474E6F0FBFD240FE853B5A2AD6E563A6@JamesHP> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 18186 Cc: 18186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) James Simmons, President & CEO wrote: > cat file1.txt file2.txt >>output.txt > > file1.txt contains a single line containing IP addresses. > file2.txt contains a single line with more IP addresses. > > output.txt SHOULD contain a single line If the input contains two lines, the output should too. Sorry, I don't see a bug here. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 08 00:52:54 2014 Received: (at 18186) by debbugs.gnu.org; 8 Aug 2014 04:52:54 +0000 Received: from localhost ([127.0.0.1]:34527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFcAf-0006JP-S6 for submit@debbugs.gnu.org; Fri, 08 Aug 2014 00:52:54 -0400 Received: from p3plsmtpa07-06.prod.phx3.secureserver.net ([173.201.192.235]:60537) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFcAc-0006JB-RH for 18186@debbugs.gnu.org; Fri, 08 Aug 2014 00:52:51 -0400 Received: from JamesHP ([67.80.157.15]) by p3plsmtpa07-06.prod.phx3.secureserver.net with id c4sj1o0070LCosK014sjiW; Thu, 07 Aug 2014 21:52:44 -0700 Message-ID: <5DCC787230714A6D8630194C23FBE8BA@JamesHP> From: "James Simmons, President & CEO" To: "Paul Eggert" References: <9FC1951CCF3644BBB33997571DFB84E6@Home2> <53DE9EC9.2020808@cs.ucla.edu> <474E6F0FBFD240FE853B5A2AD6E563A6@JamesHP> <53E41325.5000507@cs.ucla.edu> In-Reply-To: <53E41325.5000507@cs.ucla.edu> Subject: Re: bug#18186: cat.c needs fixing since 1998 Date: Fri, 8 Aug 2014 00:52:01 -0400 Organization: The Personal Computer User Group, International MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18186 Cc: 18186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Each file has 1 line with no newline. concatenation should NOT have a newline. That is the point of concatenation. -----Original Message----- From: Paul Eggert Sent: Thursday, August 07, 2014 8:00 PM To: James Simmons, President & CEO Cc: 18186@debbugs.gnu.org Subject: Re: bug#18186: cat.c needs fixing since 1998 James Simmons, President & CEO wrote: > cat file1.txt file2.txt >>output.txt > > file1.txt contains a single line containing IP addresses. > file2.txt contains a single line with more IP addresses. > > output.txt SHOULD contain a single line If the input contains two lines, the output should too. Sorry, I don't see a bug here. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 08 01:34:08 2014 Received: (at 18186) by debbugs.gnu.org; 8 Aug 2014 05:34:08 +0000 Received: from localhost ([127.0.0.1]:34535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFcoZ-0007QS-OF for submit@debbugs.gnu.org; Fri, 08 Aug 2014 01:34:08 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:48104) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFcoW-0007Pu-G9 for 18186@debbugs.gnu.org; Fri, 08 Aug 2014 01:34:05 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 0FD41A6000B; Thu, 7 Aug 2014 22:33:58 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SXx9iNhIcYM4; Thu, 7 Aug 2014 22:33:53 -0700 (PDT) Received: from [192.168.1.9] (pool-71-177-17-123.lsanca.dsl-w.verizon.net [71.177.17.123]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 4199839E801B; Thu, 7 Aug 2014 22:33:53 -0700 (PDT) Message-ID: <53E4613D.1000602@cs.ucla.edu> Date: Thu, 07 Aug 2014 22:33:49 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: "James Simmons, President & CEO" Subject: Re: bug#18186: cat.c needs fixing since 1998 References: <9FC1951CCF3644BBB33997571DFB84E6@Home2> <53DE9EC9.2020808@cs.ucla.edu> <474E6F0FBFD240FE853B5A2AD6E563A6@JamesHP> <53E41325.5000507@cs.ucla.edu> <5DCC787230714A6D8630194C23FBE8BA@JamesHP> In-Reply-To: <5DCC787230714A6D8630194C23FBE8BA@JamesHP> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 18186 Cc: 18186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) James Simmons, President & CEO wrote: > Each file has 1 line with no newline. Ah, that wasn't clear from your email. I'm afraid we still don't have a simple, self-contained test case that illustrates the bug so that others can easily reproduce it. It may be helpful to browse the "Bug Reports" section of: http://www.gnu.org/software/coreutils/ From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 08 08:27:49 2014 Received: (at 18186) by debbugs.gnu.org; 8 Aug 2014 12:27:49 +0000 Received: from localhost ([127.0.0.1]:34767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFjGu-00038C-Eh for submit@debbugs.gnu.org; Fri, 08 Aug 2014 08:27:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60440) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFjGr-000382-27 for 18186@debbugs.gnu.org; Fri, 08 Aug 2014 08:27:46 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s78CRgec025492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 8 Aug 2014 08:27:42 -0400 Received: from [10.3.113.132] (ovpn-113-132.phx2.redhat.com [10.3.113.132]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s78CRgDY016155; Fri, 8 Aug 2014 08:27:42 -0400 Message-ID: <53E4C23D.9010409@redhat.com> Date: Fri, 08 Aug 2014 06:27:41 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: "James Simmons, President & CEO" , Paul Eggert Subject: Re: bug#18186: cat.c needs fixing since 1998 References: <9FC1951CCF3644BBB33997571DFB84E6@Home2> <53DE9EC9.2020808@cs.ucla.edu> <474E6F0FBFD240FE853B5A2AD6E563A6@JamesHP> <53E41325.5000507@cs.ucla.edu> <5DCC787230714A6D8630194C23FBE8BA@JamesHP> In-Reply-To: <5DCC787230714A6D8630194C23FBE8BA@JamesHP> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GeFw6Ju5FOw5bVGha5AuftMFeCrhJKGXr" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 18186 Cc: 18186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GeFw6Ju5FOw5bVGha5AuftMFeCrhJKGXr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --GeFw6Ju5FOw5bVGha5AuftMFeCrhJKGXr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJT5MI9AAoJEKeha0olJ0Nq0XUH/16wXTM9IAbuW1Z/MDz4UcGc wBjs6SBEBe1LZez5dYBFvuoOLB63sjEWKkC4IXscsJM47ZdBb2mOTsHtWFM4N/uI qW1NbfHIUbzBcmstW28DC0k0+tpuwNTsP21z3P69nbGhIL0piNuwj4L5HCpOmt/b 6v+mi4rdpLMssEfJ5SB+4QJyOgiRA05brQoPIWi/W+Z8/gyWQtyPtW373wkYIpZq sjQEWj/lZYSEx5gMEHfEo5NaTUY6a4UlmcOqetXA7Q5DYQcVOn6yqWN4fNIwzCMs BxtOo1bT4/CGCOYVe5Ly94HjTuH7P/shHTbkmNui4ZRxkAlgobynoPFGyQ7PpNE= =wwej -----END PGP SIGNATURE----- --GeFw6Ju5FOw5bVGha5AuftMFeCrhJKGXr-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 08 09:15:05 2014 Received: (at 18186) by debbugs.gnu.org; 8 Aug 2014 13:15:05 +0000 Received: from localhost ([127.0.0.1]:34784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFk0e-0004IV-0j for submit@debbugs.gnu.org; Fri, 08 Aug 2014 09:15:04 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:59776) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFk0a-0004Hb-Cb for 18186@debbugs.gnu.org; Fri, 08 Aug 2014 09:15:01 -0400 Received: from [10.0.4.15] (gw.camline.com [62.153.148.194]) by mrelayeu.kundenserver.de (node=mreue005) with ESMTP (Nemesis) id 0MdqcT-1X3qpE0CTd-00PaQR; Fri, 08 Aug 2014 15:14:53 +0200 Message-ID: <53E4CD4C.5030504@bernhard-voelker.de> Date: Fri, 08 Aug 2014 15:14:52 +0200 From: Bernhard Voelker User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "James Simmons, President & CEO" , Paul Eggert Subject: Re: bug#18186: cat.c needs fixing since 1998 References: <9FC1951CCF3644BBB33997571DFB84E6@Home2> <53DE9EC9.2020808@cs.ucla.edu> <474E6F0FBFD240FE853B5A2AD6E563A6@JamesHP> <53E41325.5000507@cs.ucla.edu> <5DCC787230714A6D8630194C23FBE8BA@JamesHP> In-Reply-To: <5DCC787230714A6D8630194C23FBE8BA@JamesHP> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:dB3NxKgTyWzhTskgKL0cItdhEknyL0DYxhHvDZHHtpE DsS5wpuVxKhBgJRW6mwDJQLnhxnpUmEB7Qi4X7JikLcckkd/Ot T/31DnMxgpyHwyFCnUQ4NdZOOYhk6bleBayP14lQCRNDVTm0/3 kuw+4Z7kjHVQgMXvS/DJ5F7NhFURsKirx506kcFX4Ticuyj6le 50kGiUQAPCdo4iIFV1juwMtv/LPOZgCePkW9qOhF+RQexIt/mI KBFYiR7dMF7c2y+FmBrP/pWz1QRxQqLmdeTPUyor3efwB0r0lc u08tD/CvV/9Vntti0Vn+HaoRTEY9CtynhRWgGr/xH8HoOPBcHc cgTI4kwzMQEJhPFThepg4RtaYp8cmdsDG6D6TVAbr X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18186 Cc: 18186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.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 From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 08 14:04:46 2014 Received: (at 18186) by debbugs.gnu.org; 8 Aug 2014 18:04:46 +0000 Received: from localhost ([127.0.0.1]:35683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFoWz-00036R-Ic for submit@debbugs.gnu.org; Fri, 08 Aug 2014 14:04:45 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:40195 helo=Ishtar.hs.tlinx.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFoWx-00036H-7u for 18186@debbugs.gnu.org; Fri, 08 Aug 2014 14:04:44 -0400 Received: from [192.168.4.12] (athenae [192.168.4.12]) by Ishtar.hs.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id s78I4Ulp006789; Fri, 8 Aug 2014 11:04:32 -0700 Message-ID: <53E5112F.1000903@tlinx.org> Date: Fri, 08 Aug 2014 11:04:31 -0700 From: Linda Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: Paul Eggert Subject: Re: bug#18186: cat.c needs fixing since 1998 References: <9FC1951CCF3644BBB33997571DFB84E6@Home2> <53DE9EC9.2020808@cs.ucla.edu> <474E6F0FBFD240FE853B5A2AD6E563A6@JamesHP> <53E41325.5000507@cs.ucla.edu> In-Reply-To: <53E41325.5000507@cs.ucla.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18186 Cc: 18186@debbugs.gnu.org, "James Simmons, President & CEO" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Paul Eggert wrote: > James Simmons, President & CEO wrote: >> cat file1.txt file2.txt >>output.txt >> >> file1.txt contains a single line containing IP addresses. >> file2.txt contains a single line with more IP addresses. >> >> output.txt SHOULD contain a single line > > If the input contains two lines, the output should too. Sorry, I > don't see a bug here. --- If he is using an editor like Vim, it will not show you the last linefeeds in the file because it always inserts them automatically unless you are in binary mode. I had a similar problem with vim force inserting an LF on a file update, just to "help me". The problem comes when you want to concatenate text fields, where neither are terminated by an LF. I think that may be what the OP is expecting, not knowing that the problem may be in their text editor that won't inhibit LF@EOF in text mode even though it has a flag for it. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 18 20:52:59 2018 Received: (at 18186) by debbugs.gnu.org; 19 Oct 2018 00:52:59 +0000 Received: from localhost ([127.0.0.1]:57816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDJ2A-0004AG-Nx for submit@debbugs.gnu.org; Thu, 18 Oct 2018 20:52:58 -0400 Received: from mail-pg1-f172.google.com ([209.85.215.172]:39967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDJ28-00049t-Co; Thu, 18 Oct 2018 20:52:56 -0400 Received: by mail-pg1-f172.google.com with SMTP id n31-v6so14987175pgm.7; Thu, 18 Oct 2018 17:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=XzwfwWOlw/y0e+yboCJ8HMCMdX/CqPw3NiwooWF+SKA=; b=esqRrZ1EaRSfMY8j0bbgUD3tgFW3Xo2SglG7vW3KAdiM3q5pmea1GYgLqGsjzghWU2 PK/vMVnNe/RqpqUuQEMGUjZ7baGU/rHQ+wu/RDjEaaWFL13hQDlmV5Y2JcHtfXlP4+7V 7OApSo0szVw1NJ3w+yJ/5dPnWhwfQKaO90AXsYQj8MeOjHgmoK/dkQBve/LinPnQY6zg 8z6+OjRXyIR9aLQBZLKo/LNwQF3JjhrENBANS063z4vgs15Rn+XGhcChyE7WwoPhPwpX o9qdoGHb6Sb1exQWGnkfsKQKVh+dNSkiYYZkRSuQ/E4a3cislrgWX4P9KUhEzI6jWSS9 MZNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XzwfwWOlw/y0e+yboCJ8HMCMdX/CqPw3NiwooWF+SKA=; b=AyrHjQZGUj4GBf5bH6VY/G69LY+Sqs1WW55Pr6bTMQgSaa8bFGt+6F97f0g3nPZcwo DvrXNW9kvJMYt0HSBnKC19190TERhUdnPOymvHGOSRa1qwo6FTHs/2IXUk0aX+jFdMCH 3jCAgdAL+eYjj4KeoQI46VF3ZPoeFlJyW5GVqddg2ug7vSGkuitiTALO6ld4sFnQyDSr uEcG4w6g5AU9lfgBb/mb3zuLmErf2kh/bfjy2d/xck64zf/0F/fcI3ePVh1/iyujJ3a4 O9PU+8oKzGt0ExJY9NbUXiqtG0gavkRnaM1Zd3hh5TS8FPBwq7ljUnF05mR88Rj08E+7 FJzA== X-Gm-Message-State: ABuFfoh9XlRysa2C5YofmCSL9/hVELFMlMJvRn2eqfuW3xFoOTKVmhm6 1FK7COiWvEWPeGauo3b2CHgT+jxXtZk= X-Google-Smtp-Source: ACcGV61HNdFRhmgYB2ST1tXhuPWlkcIviVm9dklO1H2/mO4uL3qbcWNF7ElM3W126g0brH3/KIzDAQ== X-Received: by 2002:a63:b4b:: with SMTP id a11-v6mr28922230pgl.97.1539910369953; Thu, 18 Oct 2018 17:52:49 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id r73-v6sm37010878pfk.157.2018.10.18.17.52.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 17:52:48 -0700 (PDT) Subject: Re: bug#18186: cat.c needs fixing since 1998 To: 18186@debbugs.gnu.org References: <9FC1951CCF3644BBB33997571DFB84E6@Home2> <53DE9EC9.2020808@cs.ucla.edu> <474E6F0FBFD240FE853B5A2AD6E563A6@JamesHP> <53E41325.5000507@cs.ucla.edu> <5DCC787230714A6D8630194C23FBE8BA@JamesHP> <53E4CD4C.5030504@bernhard-voelker.de> From: Assaf Gordon Message-ID: <71ca4308-5daf-cf7c-e8b7-31ec3837585b@gmail.com> Date: Thu, 18 Oct 2018 18:52:47 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <53E4CD4C.5030504@bernhard-voelker.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18186 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 18186 moreinfo close 18186 stop (triaging old bugs) On 08/08/14 07:14 AM, Bernhard Voelker wrote: > 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: [...] > I don't see a bug here either. with no further follow-ups in 4 years, I'm closing this bug. regards, - assaf From unknown Sat Jun 21 05:14:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 16 Nov 2018 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator