Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 2 Sep 2002 09:18:07 +1000 (EST) From: luke DOT kendall AT cisra DOT canon DOT com DOT au Subject: Re: Bug? Mixed CR/LF and LF line endings from different programs To: cygwin AT cygwin DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <20020901231807.A196657B4@ivory.research.canon.com.au> 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/