delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/15/06:03:30

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:mime-version
:content-transfer-encoding; q=dns; s=default; b=ZPeuwv6v9JyaCXEY
2tRQ3VaX/RdLFR4t3dGN13fSOgj+qacfF2qc6aDM5p3eApLcais+VcaM8X8wGufD
l3O4sD98GkFJ7u8gNeuXhuRVmQGzUAl6+dDGTFs6DwdEIOlpUyT/CFje4IkCRMZP
GzqLVCG5QsxlfjMovlFTWTxx02o=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:mime-version
:content-transfer-encoding; s=default; bh=VPZun5fzGc4cqYnk30KZXL
fPEww=; b=DGyGQgnu9bwdJFuV+OCfIZaT+5z7/7ojJ3IBtA6Asdl49n+m+QHK4O
Ej2XhrwDt15mJv8wTQm2Zg1wrR0gzOdMLUl1bFnCOEWx1VP5zYIz0ewcw5pj7Whe
1UzRt6YWqH2P5CVDk0XIFOmLH7NzWsDMr00KsxiSPLLrCiRFKDXmw=
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=-0.6 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=lau, Lau, mixing, Munich
X-HELO: mga12.intel.com
From: "Soegtrop, Michael" <michael DOT soegtrop AT intel DOT com>
To: Timo Maier <tam AT diotec DOT com>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: sed end of line
Date: Fri, 15 Mar 2019 10:03:09 +0000
Message-ID: <0F7D3B1B3C4B894D824F5B822E3E5A178FD4244E@IRSMSX102.ger.corp.intel.com>
References: <5C8B75AC DOT 8020002 AT diotec DOT com>
In-Reply-To: <5C8B75AC.8020002@diotec.com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x2FA3S8Q014247

Dear Timo,

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.

Best regards,

Michael 
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, , Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

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