X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_20 X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: 1.7.5: Extra \r when redirecting output Date: Tue, 20 Jul 2010 17:03:15 -0400 Message-ID: In-Reply-To: References: From: "Garber, Dave (GE Energy, Non-GE)" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Rumor has it that grep 2.6.3 fixes this behavior. Could the grep maintainer build a new version, please? Thanks In Advance, Dave=20 -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Garber, Dave (GE Energy, Non-GE) Sent: Thursday, July 08, 2010 9:40 AM To: cygwin AT cygwin DOT com Subject: 1.7.5: Extra \r when redirecting output 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 -- 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