X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Message-ID: <4F393B4E.4020705@gnu.org> Date: Mon, 13 Feb 2012 17:33:18 +0100 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: Earnie Boyd CC: cygwin AT cygwin DOT com, bug-sed AT gnu DOT org Subject: Re: sed strips CRs References: <2BF01EB27B56CC478AD6E5A0A28931F203F560E4 AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> <20120210150708 DOT GA22832 AT calimero DOT vinschen DOT de> <20120211100600 DOT GA9823 AT calimero DOT vinschen DOT de> <4F391A38 DOT 6000505 AT redhat DOT com> <4F392012 DOT 80101 AT gnu DOT org> <20120213145612 DOT GA8858 AT calimero DOT vinschen DOT de> <4F392ABC DOT 1040309 AT gnu DOT org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 On 02/13/2012 04:43 PM, Earnie Boyd wrote: >> > >> > By the way, I'm still opening the script file with "rt". I cannot think of >> > any case when you would want to keep CRs there. > The case of > > sed -e 's/something/nothing/g' myfile > myfile2 > > as it works in Cygwin today would mean that in the case of the OP's > drive settings myfile2 would not contain the CR. Treating CR as white > space is the more proper thing to do, IMO. myfile is not the script file. The script file is the one that you pass to -f. Using "rt" was introduced in both cases for Cygwin, so regressions on other systems shouldn't be a problem. Paolo -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple