delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/01/19:18:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <Pine.GSO.4.44.0208301024200.14712-100000@slinky.cs.nyu.edu>
MIME-Version: 1.0
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019