This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Bug? Mixed CR/LF and LF line endings from different programs
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 29 Aug 2002 10:42:35 -0400
- Subject: Re: Bug? Mixed CR/LF and LF line endings from different programs
- References: <20020829073219.02F148B1F@bellmann.research.canon.com.au>
- Reply-to: cygwin at cygwin dot com
On Thu, Aug 29, 2002 at 05:35:59PM +1000, luke.kendall@cisra.canon.com.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/