Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 19 Feb 2003 15:54:12 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: CR stripped in files with CR/LF by 'ed' while in binary mode. Message-ID: <20030219205412.GA6741@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <001501c2d856$36e5c490$6401a8c0 AT MattePort> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001501c2d856$36e5c490$6401a8c0@MattePort> User-Agent: Mutt/1.5.1i 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/