From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27411 invoked by alias); 16 Feb 2017 04:25:06 -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 27372 invoked by uid 89); 16 Feb 2017 04:25:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:789, H*r:6000, H*M:google, H*UA:github.com X-HELO: mail-oi0-f48.google.com Received: from mail-oi0-f48.google.com (HELO mail-oi0-f48.google.com) (209.85.218.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 Feb 2017 04:25:03 +0000 Received: by mail-oi0-f48.google.com with SMTP id w204so3176161oiw.0 for ; Wed, 15 Feb 2017 20:25:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:subject:references :user-agent; bh=vPU6/Q45Fwn8S9xg1yxnBe6+F5+TAYQ8s5dJmSEl9ZQ=; b=Us3oKu0POi4Ai8cdPp5d5cr8wb2nNTOpmiJSTvH1U3JqE204SZBV+P7YjQoS5cHFZw 1u4hXEfSxYqbkKXEaJbwHJ+XwuoDp3V8C4fNxY4ussdVv3HZy/Z/+ZDwl/9pLxzIhGTz fpEhvsuEZVvaRBE3HJ7ZciWKirb65QOJIpOnLuqwtoBB0JsFmDg0qGLWBFm3xcn83QUH grYQ9TgFmyM8iUqLUbmHPknyvSBs7GKdBeXv+46WGtld41RZfWNV2vr/pisvQvR1LkZ1 0q/ZI0cVAqB3uuWi0fjluy/yjej69LgaGdr/TjnWMzf/IEO37ccGUqtnAUEoB/0x6Vtv ehyw== X-Gm-Message-State: AMke39mLu4CXQh5nJGISMY04CGtNt5dvm6t6SuOsCHL1joLAWplOwnfTgIVaLQD5+VdLcA== X-Received: by 10.202.90.135 with SMTP id o129mr129790oib.69.1487219101961; Wed, 15 Feb 2017 20:25:01 -0800 (PST) Received: from 87N ([2605:6000:9fc0:56:811:343f:f904:d318]) by smtp.gmail.com with ESMTPSA id h35sm2459017oth.50.2017.02.15.20.25.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 20:25:01 -0800 (PST) Message-ID: <58a5299d.26149d0a.a2c17.d033@mx.google.com> Date: Thu, 16 Feb 2017 04:25:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated [test]: grep-3.0-2 References: Content-Type: text/plain; charset=UTF-8 User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) X-SW-Source: 2017-02/txt/msg00204.txt.bz2 On Tue, 14 Feb 2017 10:17:25, "Eric Blake (cygwin)" wrote: > This build modifies the behavior of grep to no longer force text mode on > binary-mounted file descriptors. Works, thanks: $ printf 'hello world\r\n' | grep . | od -tcx1 0000000 h e l l o w o r l d \r \n 68 65 6c 6c 6f 20 77 6f 72 6c 64 0d 0a > 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: $ printf 'hello world\r\n' | tr -d '\r' | od -tcx1 0000000 h e l l o w o r l d \n 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a -- 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