This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Erroneous line endings (cat,gawk,text mount)


On Tue, Apr 22, 2003 at 10:54:41PM +0100, Peter S Tillier wrote:
> Replying to Igor Pechtchanski who wrote:
> 
> > Also, "cat" will not translate line endings or anything at all --
> > it's just a character-by-character copy of stdin to stdout.
> 
> Fair enough (and what I expect it to be) thanks for the clarification.

Igor, how do you explain the following behavior?
~: od -c
abc
0000000   a   b   c  \n
0000004
~: cat | od -c
abc
0000000   a   b   c  \r  \n
0000005
This is with CYGWIN undefined and stty -igncr icrnl
I get the \r no matter what I try for CYGWIN and stty.

Pierre

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]