delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/15/23:00:08

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: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 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=-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 DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: sed end of line
To: cygwin AT cygwin DOT com
References: <5C8B75AC DOT 8020002 AT diotec DOT com> <0F7D3B1B3C4B894D824F5B822E3E5A178FD4244E AT IRSMSX102 DOT ger DOT corp DOT intel DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT 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>
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

- Raw text -


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