* 1.7.5: Extra \r when redirecting output
@ 2010-07-08 13:44 Garber, Dave (GE Energy, Non-GE)
2010-07-20 21:33 ` Garber, Dave (GE Energy, Non-GE)
0 siblings, 1 reply; 2+ messages in thread
From: Garber, Dave (GE Energy, Non-GE) @ 2010-07-08 13:44 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
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.
Thanks,
Dave
[-- Attachment #2: foo.out --]
[-- Type: application/octet-stream, Size: 45 bytes --]
line 1
line 2
line 3
line 4
line 5
[-- Attachment #3: foo --]
[-- Type: application/octet-stream, Size: 45 bytes --]
line 1
line 2
line 3
foo
line 4
line 5
[-- Attachment #4: Type: text/plain, Size: 218 bytes --]
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: 1.7.5: Extra \r when redirecting output
2010-07-08 13:44 1.7.5: Extra \r when redirecting output Garber, Dave (GE Energy, Non-GE)
@ 2010-07-20 21:33 ` Garber, Dave (GE Energy, Non-GE)
0 siblings, 0 replies; 2+ messages in thread
From: Garber, Dave (GE Energy, Non-GE) @ 2010-07-20 21:33 UTC (permalink / raw)
To: cygwin
Rumor has it that grep 2.6.3 fixes this behavior. Could the grep
maintainer build a new version, please?
Thanks In Advance,
Dave
-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf
Of Garber, Dave (GE Energy, Non-GE)
Sent: Thursday, July 08, 2010 9:40 AM
To: cygwin@cygwin.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).
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.
Thanks,
Dave
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-20 21:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-08 13:44 1.7.5: Extra \r when redirecting output Garber, Dave (GE Energy, Non-GE)
2010-07-20 21:33 ` Garber, Dave (GE Energy, Non-GE)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).