delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/20/17:04:28

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
MIME-Version: 1.0
Subject: RE: 1.7.5: Extra \r when redirecting output
Date: Tue, 20 Jul 2010 17:03:15 -0400
Message-ID: <A4AC3816FD34354F878DD1F440F3ABCE02EEA826@CINMLVEM24.e2k.ad.ge.com>
In-Reply-To: <A4AC3816FD34354F878DD1F440F3ABCE02CD9D7D@CINMLVEM24.e2k.ad.ge.com>
References: <A4AC3816FD34354F878DD1F440F3ABCE02CD9D7D AT CINMLVEM24 DOT e2k DOT ad DOT ge DOT com>
From: "Garber, Dave (GE Energy, Non-GE)" <dave DOT garber AT ge DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019