X-Recipient: archive-cygwin@delorie.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=pLTzOfDcq74OQ1Bz
	wsytOl68BXZ/bqzufl8qQDx+8xpf4uk+COCZ3B0egafg3wXg79OpjmHq4G4zcTka
	+WKG4bKYvhfjRV29rrpYPUBgrAMmH3GTloo6XHrU0AvxC8b+IDOoElVuFl1tH49u
	bkrhhaAoJqxAGbRHzCFyy5k346U=
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=afstdmKpRA+sG2BjM/usaf
	s+d5M=; b=vkFZRocBK4YPyXtFh5s5F9MeE2xXu7RUsqKFlwmO1pSgGzZ+DX9fOU
	Dk9XihRhE0Z0WJsOK0n04TAs0sHVkR1o+lfVruSj7WrSO8EYUDLrOREk1W8xTSot
	c8Jd4glfsKtdPvH687ecj9Da621IgZFaM9DGjPFY3+KhzMMZYVwOI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=stating, H*r:ip*192.168.0.6
X-HELO: mail-it0-f44.google.com
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:message-id:date         :user-agent:mime-version:in-reply-to:content-transfer-encoding;        bh=QIsN/Kd6pWC0QPmD9wcMBTHU4bf9u+ySWTteUSU074I=;        b=Shq682eIYOQMqIqckY+qyiU86P29nsMqvetNwLgnS3QFjVXuZ0qIdoc62RlmdxgBBg         1DCiokKqfrYRJ9wwYYompwZaX75MJk9w7cdJcOVkzB4a9eI0BVxXluq91F5dsdekBFyH         Qc3Rdt7AMfarkBJH/XGK/UXgADZs81FGZcSRZfPBg3J1osoPYuhuFdzY9Z6csJpQuNqA         ylPyiR/zMUAY8znafmdBtV4pqjNQNoZ/qajAQiMe1xaTpTIUcmXXLwBDlYr/JXKb0hKm         TAI3X5sV6bo6MosEjxXqTW5aVgcBGDyrPRH0hDkrwO+blNa1jHP+qIx0cD1e9GJ0l2Wx         Ie+w==
X-Gm-Message-State: AMke39m2HOpZwaSRi/k4GK5nPFy9uHRq4cCdLKI5NxGSKCiWNb3JG1ioED9an6sPdp/a8g==
X-Received: by 10.36.213.196 with SMTP id a187mr4165071itg.4.1487349779418;        Fri, 17 Feb 2017 08:42:59 -0800 (PST)
Subject: Re: [ANNOUNCEMENT] Updated [test]: grep-3.0-2
To: cygwin@cygwin.com
References: <announce.1ee39b81-925c-cb2e-efe5-bd06f27a8440@redhat.com> <58a5299d.26149d0a.a2c17.d033@mx.google.com>
From: cyg Simple <cygsimple@gmail.com>
Message-ID: <7326506c-5785-001c-0613-be94257689d8@gmail.com>
Date: Fri, 17 Feb 2017 11:43:13 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <58a5299d.26149d0a.a2c17.d033@mx.google.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

On 2/15/2017 11:25 PM, Steven Penny wrote:
>> Since this includes pipelines by default, this means that if you pipe text
>> data through a pipeline (such as the output of a windows program), you may
>> need to insert a call to d2u to sanitize your input before passing it to grep.
> 
> This is certainly a good way to do it, but for more portable solution use tr:
> 

There are as many ways to remove the \r as there are ways to create
them. By stating this you've convoluted the point Eric was trying to
make which was more a caution than a way to get rid of unexpected data.
You could use d2u, tr, sed, vi, foo, bar, baz, etc.  It doesn't matter
what you use to rid your piped process of excess data as long as the
excess data is removed.  Certainly portability should be a concern if
you're distributing the process or using differing systems with the same
process but we're talking about a Windows only type of issue since the
processes on *NIX will never return \r\n without some planned reason to
do so.

-- 
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

