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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=gs/bkQIUPCYUwar1 g5v0kdHJvJKJk9hm5S1nlynI2SJgoqfLFYywUKJhS/ng4QD5bupU8pp2GHVK7/RO e6rEMD4x+kGlj9ENrdmiHg8uEf+BLPkNgXGL/qxMOfIgRe+464W+29wNTmgUnWlS dSsT6soafKLUCLmicuUMqXYUabI= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=0inANkEHEW5gtTbu7Amasr P+KWg=; b=D9ZMl26NRf7n7aDfoEx0CGJHIh1R/0U5wAz553R9l9arPKQidj4kcA QfsvHv5H1fY3XX0xq4a6W0entwOgZjykEzRsCbXZrTDzjufOz9asJ6WX5zPueV9n SH/89YysFb6kG8NagIn2SzhpqMqv6ZYwOAJ34XKzohCotle80guMA= 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-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,FOREIGN_BODY,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=auf, antivirus, sk:antivir, EMail X-HELO: mail-wr1-f54.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=MZUXlt+yICJLrPlfSPmkNAVP+bk7TOlmFaW7KscBZXg=; b=qDhFmsRNGLU4nFXrb+Agwi5qPO9OdujLjqjbH0hPaKn9fK75KBinlhsoBBhbAn7F1b vhl6TJOReTJ/X9DHzss61BroAHXwDs9198o/rqao4omhGo1ECbmMw9USmtcK6tTNRPyx 5Xm/MdHbjlBmUujdbj26vBAsglpjvnii1fS1QgTKWHBxcG5fr16EknUmtgsxInoABO7o 6L9xXd7VA34t4PLl87IbHSVkjE02OCFG6QiNikll/DzNPy/EZcBxudWfwGYp9+WEn7l5 95dc68hoG6Kc4AQ/B0T/nhSFbC3JCNjAvsBShjuK1gMkNTVsDWI54M3fskBRzqMkzLHf Lq5w== Subject: Re: grep 3.0-2 not stripping CRs on Windows To: cygwin AT cygwin DOT com References: From: Marco Atzeri Message-ID: Date: Mon, 17 Dec 2018 12:41:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Am 17.12.2018 um 12:09 schrieb Ondřej Surý: > Hi, > > the grep package in version 3.0-2 fails to strip CR characters from the input, the reproducer is fairly simple: > > ``` > $ echo -e 'foo\r\n' | grep -a 'foo$' > $ > ``` > > Perhaps the grep fails to detect it’s running on Windows because of cygwin emulates Linux so well? :) Cygwin is a POSIX platform not a pure Windows one. If you need to strip CR character, d2u of dos2unix package is the tool. PS: cygcheck.out should be attached to the mail not inline, as inline screw up any word search of the mailing list. Regards Marco --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus -- 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