This is the mail archive of the cygwin 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]

sed 4.1.5 adds extra CR with input file path in Windows format


After upgrading sed from 4.1.4 to 4.1.5, I found that line endings were
being converted from CRLF to CRCRLF when the input file was specified
with a windows file path:

% cat sedtestin
$ccderaser -StandardInput
InputFile       g5a.st

% od -c sedtestin 0000000 $ c c d e r a s e r - S t a n
0000020 d a r d I n p u t \r \n I n p u t
0000040 F i l e g 5 a . s
0000060 t \r \n
0000063


% sed -e 's/g5a/setname/g' < 'c:\cygwin\home\mast/sedtestin' > ! sedtestout

% cat sedtestout
$ccderaser -StandardInput
InputFile       setname.st

% od -c sedtestout
0000000   $   c   c   d   e   r   a   s   e   r       -   S   t   a   n
0000020   d   a   r   d   I   n   p   u   t  \r  \r  \n   I   n   p   u
0000040   t   F   i   l   e                               s   e   t   n
0000060   a   m   e   .   s   t  \r  \r  \n
0000071

Converting the path to cygwin format eliminated the problem.

Thanks.

David Mastronarde

Attachment: cygcheck.out
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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]