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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=RiR /50I7bDazXutDpGqyED+y1fTyZbxTHWZmRBzHy7UCZCfFQtrX7Dwog6Y3HmJ7SsV D12lxhHmGa8G9ueisgypsE98u49+hGunPim5g7B5UyARtGnFBujR6Jzf0L1vylZV 2I9X0Lb0Cc0kdOFWP1xEcGZwW7ERcgEhF/UXpLZw= 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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=YIFftltGN 5ku6SvwxLIZpdPcFBs=; b=m7LTAP7W8iNdT182GpaoIjOH5qEPiNyIJiKoHlr4S 5vTBgujsMskTRGmeCPLW+H56yHIQAdwig6R8xAX2oQTWqcMpahmzYG9VFZMKCMgB C98HMcBQgVmhCkA4pCF6iJdHPBzxCQGcZFqp5Y+4bU6AkGxITOhtTCRPF8jLCWoX Ys= 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.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:D*co.jp, 0309, 2017-04-01, 0.309 X-HELO: ktmail7.koeitecmo.co.jp To: cygwin AT cygwin DOT com From: =?UTF-8?B?5bed5bSOIOato+iytA==?= Subject: grep3.0 of cygwin changed treatment of CR/LF. Message-ID: <96475ee0-f8a5-4c8a-b023-5c186f83d49f@koeitecmo.co.jp> Date: Thu, 11 May 2017 15:56:14 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-IsSubscribed: yes I found a problem on grep 3.0 on command prompt of Windows10 with 64bit cygwin. It seems that treatment of CR/LF is changed. I expect cygwin disposes of CR/LF. grep 2.25(correct) >uname -a CYGWIN_NT-10.0 PCNAME 2.6.0(0.304/5/3) 2016-08-31 14:32 x86_64 Cygwin >env LC_ALL=C grep --version grep (GNU grep) 2.25 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and others, see . > echo rr/| grep '^.*\/$' rr/ > echo rr/| gawk '/^.*\/$/' rr/ > echo rr/| sed -ne '/^.*\/$/p' rr/ grep 3.0(incorrect) >uname -a CYGWIN_NT-10.0 PCNAME 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin >env LC_ALL=C grep --version grep (GNU grep) 3.0 Packaged by Cygwin (3.0-2) Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and others, see . > echo rr/| grep '^.*\/$' > echo rr/| gawk '/^.*\/$/' > echo rr/| sed -ne '/^.*\/$/p' > echo rr/>a.txt > echo a.txt| grep '^.*\/$' > cat a.txt| grep '^.*\/$' > dos2unix a.txt dos2unix: converting file a.txt to Unix format... > echo a.txt| grep '^.*\/$' > cat a.txt| grep '^.*\/$' rr/ > cat a.txt| gawk '/^.*\/$/' rr/ > cat a.txt| sed -ne '/^.*\/$/p' rr/ thanks. -- 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