delorie.com/archives/browse.cgi | search |
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 |
MIME-Version: | 1.0 |
Subject: | 1.7.5: Extra \r when redirecting output |
Date: | Thu, 8 Jul 2010 09:39:57 -0400 |
Message-ID: | <A4AC3816FD34354F878DD1F440F3ABCE02CD9D7D@CINMLVEM24.e2k.ad.ge.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-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 |
------_=_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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |