This is the mail archive of the
mailing list for the Cygwin project.
RE: 1.7.5: Extra \r when redirecting output
Rumor has it that grep 2.6.3 fixes this behavior. Could the grep
maintainer build a new version, please?
Thanks In Advance,
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf
Of Garber, Dave (GE Energy, Non-GE)
Sent: Thursday, July 08, 2010 9:40 AM
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).
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.
However, if I do
grep -i line foo >foo.out
od -cd foo.out
then the line endings are \r\r\n.
See attached files.
This works fine on binary mounts.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple