From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33844 invoked by alias); 16 Mar 2019 02:59:57 -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 33835 invoked by uid 89); 16 Mar 2019 02:59:57 -0000 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 Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 16 Mar 2019 02:59:56 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id 4zY8huj5hLdsa4zY9hWT28; Fri, 15 Mar 2019 20:59:54 -0600 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 Openpgp: preference=signencrypt Message-ID: <110d06cf-8ce6-fd10-ec68-8be0f9b87959@SystematicSw.ab.ca> Date: Sat, 16 Mar 2019 02:59:00 -0000 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 X-SW-Source: 2019-03/txt/msg00420.txt.bz2 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