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: Thu, 29 Aug 2002 10:42:35 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Bug? Mixed CR/LF and LF line endings from different programs Message-ID: <20020829144235.GD26609@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20020829073219 DOT 02F148B1F AT bellmann DOT research DOT canon DOT com DOT au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020829073219.02F148B1F@bellmann.research.canon.com.au> User-Agent: Mutt/1.3.23.1i On Thu, Aug 29, 2002 at 05:35:59PM +1000, luke DOT kendall AT cisra DOT canon DOT com DOT au wrote: >Given the input: >qwer >asdf > >Here is the output of cat | od -c >0000000 q w e r \r \n a s d f \r \n >The output of 'cat' includes '\r'. > >Here is the output of sed 2q | od -c >0000000 q w e r \n a s f d \n >The output of 'sed' omits '\r'. > >The output of 'awk' does not include \r either. awk and sed open their standard input in textmode. This is by design. cgf -- 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/