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: Bug? Mixed CR/LF and LF line endings from different programs


On 30 Aug, Igor Pechtchanski wrote:
>  Actually, it seems to do exactly the right thing.  Notice that you PIPE 
>  the output to od, rather than write it to disk.  When you pipe the output, 
>  there is no mount info to consult, and therefore, by default, the pipe is 
>  opened in binary mode.  When you set the 'nobinmode' option on, it works 
>  exactly as cgf said, that is, it makes the pipe text mode.  I'm sure if 
>  you wrote the output of sed and awk to disk, and then od'd the result, 
>  you'd get the right thing to happen, regardless of the binmode setting. 
>  If you want to use pipes, though, then 'nobinmode' is the way to go. 
>  	Igor 

Ah!  Many thanks, Igor, that explanation made it perfectly clear.

luke


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]