X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-GEattachmentname: foo.out, foo X-GEattachmentsize: 45, 45 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01CB1EA3.10DB9DCD" Subject: 1.7.5: Extra \r when redirecting output Date: Thu, 8 Jul 2010 09:39:57 -0400 Message-ID: From: "Garber, Dave (GE Energy, Non-GE)" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com ------_=_NextPart_001_01CB1EA3.10DB9DCD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm seeing the following behavior in 1.7.5 and also 1.5.25, but not in 1.3.12 (yes, we still use that version). =20 On a text mode mount, we have the file foo which has \r\n line endings. If I do grep -i line foo|od -cd then the output shows proper \r\n line endings. =20 However, if I do grep -i line foo >foo.out od -cd foo.out then the line endings are \r\r\n. =20 See attached files. This works fine on binary mounts.=20=20 =20 Thanks, Dave=20=20 =20 ------_=_NextPart_001_01CB1EA3.10DB9DCD Content-Type: application/octet-stream; name="foo.out" Content-Transfer-Encoding: base64 Content-Description: foo.out Content-Disposition: attachment; filename="foo.out" bGluZSAxDQ0KbGluZSAyDQ0KbGluZSAzDQ0KbGluZSA0DQ0KbGluZSA1DQ0K ------_=_NextPart_001_01CB1EA3.10DB9DCD Content-Type: application/octet-stream; name="foo" Content-Transfer-Encoding: base64 Content-Description: foo Content-Disposition: attachment; filename="foo" bGluZSAxDQpsaW5lIDINCmxpbmUgMw0KZm9vDQpsaW5lIDQNCmxpbmUgNQ0K ------_=_NextPart_001_01CB1EA3.10DB9DCD Content-Type: text/plain; charset=us-ascii -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ------_=_NextPart_001_01CB1EA3.10DB9DCD--