delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/16/10:49:37

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=lNnFITYvZjE3n8xzhGua9Q9shyxwVryW9fOkDerk6wN
NoMrmRmscvMjJGHQ20Z4j9X53gvHEUAtknoFDWHlCpNc0rRo0MBcHQx9dkdgnWdM
B2kxqcDf2/fntjNHvd1nkjdcQHsWIPbnq8vQDlh6mu8euI5r/tWdsQ3kdix9csDs
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=NbygqePHYO2wUCaMXmet5Nd/8i0=; b=YGEFrEoPufTPgPDuH
OMnP9R3LIEm3z2JfgOps+ESfx2bbQdhYhkppn9higEDka5idvhl+zsx5rDhM/20Y
zWKfONFOV+2FAv1DeQWkHGybiG4BKQlXd6OFX0hQvWkO5MP2abDovbQFCnW4rbrg
jXjzuUaDqExkjlwqrXL0HTbcGA=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=
X-HELO: Ishtar.sc.tlinx.org
Message-ID: <5C8D0CE4.3080004@tlinx.org>
Date: Sat, 16 Mar 2019 07:49:08 -0700
From: L A Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: sed end of line
References: <5C8B75AC DOT 8020002 AT diotec DOT com> <0F7D3B1B3C4B894D824F5B822E3E5A178FD4244E AT IRSMSX102 DOT ger DOT corp DOT intel DOT com> <110d06cf-8ce6-fd10-ec68-8be0f9b87959 AT SystematicSw DOT ab DOT ca>
In-Reply-To: <110d06cf-8ce6-fd10-ec68-8be0f9b87959@SystematicSw.ab.ca>
X-IsSubscribed: yes

On 3/15/2019 7:59 PM, Brian Inglis wrote:
> On 2019-03-15 04:03, Soegtrop, Michael wrote:
>   
>> you are mixing a DOS echo which will produce a \r\n line ending with a
>> Cygwin sed which expects \n line endings. The second . matches the \r.
>> Either work in bash and use Cygwin echo or use a MinGW compile of sed or
>> strip the \r e.g. with tr or maybe match it more explicitly with a \r.
>>     
>
> Or use Cygwin printf "%s\n" "Hey" to avoid differing echo output.
>   
Or when in cygwin, make sure your cygwin paths are first.



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