delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/13/11:26:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F393984.50309@lysator.liu.se>
Date: Mon, 13 Feb 2012 17:25:40 +0100
From: Peter Rosin <peda AT lysator DOT liu DOT se>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
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> <CA+sc5m=UkJRKK9WZCvcfsetSUc_CHkGC-gFZEher3Tg=fK=RkQ AT mail DOT gmail DOT com> <20120211100600 DOT GA9823 AT calimero DOT vinschen DOT de> <CA+sc5mmnMBjBAqsuUdddEEwE5pgBDiGDkeV-H0WvEyZO08dMNA AT mail DOT gmail DOT com> <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> <CA+sc5m=1saftkMfJhJcoKp8ynGsYQ7ZJW+hq1jgSJQmQKobPmg AT mail DOT gmail DOT com>
In-Reply-To: <CA+sc5m=1saftkMfJhJcoKp8ynGsYQ7ZJW+hq1jgSJQmQKobPmg@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Earnie Boyd skrev 2012-02-13 16:43:
> On Mon, Feb 13, 2012 at 10:22 AM, Paolo Bonzini <bonzini AT gnu DOT org> wrote:
>> On 02/13/2012 03:56 PM, Corinna Vinschen wrote:
>>>
>>>> As long as it's consistent with coreutils I'll certainly do the change.
>>>
>>> Thanks!  Would you mind to CC the cygwin list when the next upstream
>>> sed release is available?
>>
>>
>> Sure, it should be real soon now since a new release has been long overdue.
>>
>> 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.

Paolo was talking about the "script file", i.e. the sed program.
He has already agreed to change the handling of the input/output.

Cheers,
Peter

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019