Bug? Mixed CR/LF and LF line endings from different programs
luke.kendall@cisra.canon.com.au
luke.kendall@cisra.canon.com.au
Thu Aug 29 00:36:00 GMT 2002
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
More information about the Cygwin
mailing list