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]

Bug? Mixed CR/LF and LF line endings from different programs


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.

The result when constructing text files from commands run in shell
scripts are unpleasant.

This is on Cygwin as of July 17th, and with DOS style line endings
chosen during installation.

All mount points are in textmode.

Results of cygcheck attached.

luke

Attachment: .clipboard
Description: cygcheck

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