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 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]