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=SHZH35ubyDbxY1/H WJDovJ/EEmPbX2wefTX97BTb2esXjUq0K0PsB2103LDTBJCEoC1jptvZ10zeWdya denTCF1wXsyExo39GqaDrIvnbXN0XEA9WBQaLE+2sp+FfM8ZVViJaMWtG4gKmQVp YSshgfOMxPiOuHmAOu2pSXF4wyQ= 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=phRlq4Y98NdodW0f8q52QU ceoho=; b=i81yshiYy/xAnVTAFR08DsbryT3FzqmDKw6ABiu8UexMUT0IG7Di+Y mrl5A9leZYelWveCta6d7LxzJM6sMjIlEX24niElR/x4t3fxg12Rzms+A0zMsHrK uEXUqYZicvSJM0fE7n7jjth0phldg/zesSEQWsDezYBquRg4tzQQg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:D*163.com, dear, Tel, tel X-HELO: mga12.intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 From: "Soegtrop, Michael" To: tuyanyi , cygwin Subject: RE: 2.10.0: Cygwin now can not work well with a file in dos format. Date: Fri, 15 Jun 2018 15:11:23 +0000 Message-ID: <0F7D3B1B3C4B894D824F5B822E3E5A177880092C@IRSMSX102.ger.corp.intel.com> References: <2bfeabde DOT 39a8 DOT 16403e31153 DOT Coremail DOT tuyanyi AT 163 DOT com> In-Reply-To: <2bfeabde.39a8.16403e31153.Coremail.tuyanyi@163.com> x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDMyZWRmOGEtZWVlNS00ODgxLTkyYWMtZmM4ODNhZDc2NTZjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZkNPUVRIZkVrRDl2UlFObVhxeDBCOXpqQ2VwY0Z3S0JHNDRZWm90U0lFQ2tLaklBVEpiRVEyVW1Bako2UGh6ViJ9 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id w5FFBdBp010075 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. 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, Christian Lamprechter 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