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: CR stripped in files with CR/LF by 'ed' while in binary mode.


On Wed, Feb 19, 2003 at 12:33:50PM -0800, KMatte wrote:
>Using 'ed' to modify a file with 'CR/LF' at the end of each
>line results in the CR's being stripped out.

Correct.  ed is linked with automode.o.  It reads textmode input
and writes binmode output.

>I don't believe this is the desired behaviour since vi
>doesn't behave in this manner.

vi has a 'set [no]binary' command.  ed doesn't.

However, as always, patches gratefully accepted.

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]