From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89548 invoked by alias); 16 Mar 2019 14:49:26 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 82698 invoked by uid 89); 16 Mar 2019 14:49:15 -0000 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 Received: from ishtar.tlinx.org (HELO Ishtar.sc.tlinx.org) (173.164.175.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 16 Mar 2019 14:49:14 +0000 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id x2GEn8pE048840; Sat, 16 Mar 2019 07:49:11 -0700 Message-ID: <5C8D0CE4.3080004@tlinx.org> Date: Sat, 16 Mar 2019 14:49:00 -0000 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: Brian.Inglis@SystematicSw.ab.ca, "cygwin@cygwin.com" Subject: Re: sed end of line References: <5C8B75AC.8020002@diotec.com> <0F7D3B1B3C4B894D824F5B822E3E5A178FD4244E@IRSMSX102.ger.corp.intel.com> <110d06cf-8ce6-fd10-ec68-8be0f9b87959@SystematicSw.ab.ca> In-Reply-To: <110d06cf-8ce6-fd10-ec68-8be0f9b87959@SystematicSw.ab.ca> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00438.txt.bz2 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