From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78839 invoked by alias); 15 Jun 2018 19:46:08 -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 78459 invoked by uid 89); 15 Jun 2018 19:46:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:k16-v6s X-HELO: mail-io0-f182.google.com Received: from mail-io0-f182.google.com (HELO mail-io0-f182.google.com) (209.85.223.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Jun 2018 19:46:05 +0000 Received: by mail-io0-f182.google.com with SMTP id f1-v6so11721198ioh.6 for ; Fri, 15 Jun 2018 12:46:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=1rfgRn0RSA+xHrPcPuk/RRapqxvnoFxU4Ge8Bbs4VFc=; b=t8aRajD11dPqN+co2ltV5Tt8aLwZFeR94rShMQdTp321omVWVjRHoUkOij4eK1Zgw5 +/0oIr3QRT8ilpcCn9GWifh+xiq2B4Ybo4YyDW01DlzF4vXTAZjqwwkYZ1EwiyFSGjIB 311qd0QrjChbQJ72+38y1/nhgoQj6X0ndsnBQsnskE8B4Gv3x6COJOHM/FkEUMp1XauC MxiY9u5x8cgtSPVazVj8WoHsOa9M1K/ej01NjNCXNsJ9/XHU4yDwnL6n95qEBTYR17eq hiL3AnLE7GlFCiXyPugndWvTcBiSa6KV0/VG7QetnzxZVCw/puOY64D6zySaZtvTThug OkJw== X-Gm-Message-State: APt69E07g/h6g5DUYxFqN6BjLq8ObfaTRCqS3N5eu53mmpEEgNjf5I9m CID0XKsJupDjXxNaNDbQRvlLxg== X-Google-Smtp-Source: ADUXVKJ/lBpsqf6/uJl22r4ADSpLEjbP2SddawQU2hirb9lHPhM8avdXVrFxbTPQichr9P5NlWtouA== X-Received: by 2002:a6b:a7cc:: with SMTP id q195-v6mr2628793ioe.130.1529091961955; Fri, 15 Jun 2018 12:46:01 -0700 (PDT) Received: from [192.168.0.19] ([50.4.50.42]) by smtp.gmail.com with ESMTPSA id k16-v6sm3251352iog.45.2018.06.15.12.46.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jun 2018 12:46:01 -0700 (PDT) Subject: Re: 2.10.0: Cygwin now can not work well with a file in dos format. To: cygwin@cygwin.com References: <2bfeabde.39a8.16403e31153.Coremail.tuyanyi@163.com> <0F7D3B1B3C4B894D824F5B822E3E5A177880092C@IRSMSX102.ger.corp.intel.com> From: cyg Simple Openpgp: preference=signencrypt Message-ID: <26311d64-653a-1cc4-2cfd-d49b3c86de0e@gmail.com> Date: Fri, 15 Jun 2018 23:50:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A177880092C@IRSMSX102.ger.corp.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00180.txt.bz2 On 6/15/2018 11:11 AM, Soegtrop, Michael wrote: > Dear Tuyanyi, > > what has been changed in sed and awk is handling of carriage returns. The sed and awk of older Cygwin version strip \r from the input. Newer versions behave like the same tools on Linux and don't strip CR. This is documented in the release notes, intended behavior and has been discussed quite extensively on the list (I complained about the same issue some-time last year). > > The options you have is either to strip the \r characters away first (e.g. using tr) or to compile old versions of awk and/or sed from sources. > The best option is to follow the suggestions in the manual. https://www.gnu.org/software/gawk/manual/gawk.html#Cygwin -- cyg Simple -- 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