X-Recipient: archive-cygwin@delorie.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:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=eVyBXkgX6r+YIjRX
	ikyamWeZwCtMfNEkjggnwYuZt2CRccEwvd+bLapgFms4PpYIkEfHENEMCOYCTCTo
	VgbqcLWjZV8aElRvbZYJvR+Fs18XVThVh0VlcdjxIf90SiIbiMJH5TY6NrQ75zir
	OlS3ZwWvdLQmHcfYu4dNIiiMm7g=
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:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=oMLkotMTOVbjwjk3LiOD43
	8KlUM=; b=r6S6KlqEztl5kxwEMAOzXcnka/fcsTut3Z05Y2iykO2gCFVpJ24oeU
	vuhKZ4rikN+X57lB7TtGb6HwZLdBCb10WXGngs5j4U/dwSdyttoA6k3h3kFCsRJb
	FTaIjxZGQsG8b7VYCSQBEj1jX9QuPTMT/iHQ62eMK1kZsysSS0cNk=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=soegtrop, Soegtrop, HX-Languages-Length:608, advised
X-HELO: smtp-out-no.shaw.ca
Reply-To: Brian.Inglis@SystematicSw.ab.ca
Subject: Re: sed end of line
To: cygwin@cygwin.com
References: <5C8B75AC.8020002@diotec.com> <0F7D3B1B3C4B894D824F5B822E3E5A178FD4244E@IRSMSX102.ger.corp.intel.com>
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Openpgp: preference=signencrypt
Message-ID: <110d06cf-8ce6-fd10-ec68-8be0f9b87959@SystematicSw.ab.ca>
Date: Fri, 15 Mar 2019 20:59:52 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3
MIME-Version: 1.0
In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A178FD4244E@IRSMSX102.ger.corp.intel.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes


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.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

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

