delorie.com/archives/browse.cgi | search |
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:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; q=dns; s=default; b=oFMiIiXt6rNjOyy0 | |
I+fWPxy0KJg0tPLgVctP+IiPk7MbdnSeTn4JU1kQ/Ni2odRIED/1MPrjpwLRV0VZ | |
PPHH6g4mRHOjuhtwWHw8n7RR9NQdr08Ozx05FgccSAhe+6T7AQgG/4o1RG+Q1RUV | |
TYUv5TtJ6ITz5J8pc93Ljh2BH9E= | |
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:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; s=default; bh=ECSuLCZ10Ut0DPDwhHsxV0 | |
NxNqQ=; b=acIeOhVautWsz+D445ls8C+ZNapJWhN2g9d4LPJ1rLtiHqmmdXG/1R | |
5Yvu5YqgaJeWKIqSZpT1sYB8hbpqexmeV8H+1xyf2RJwNeGOIFO5A829AcjW4y9u | |
9F1mxIoaAZaKNyDzH5TLFUQ+O2PjP1NzMQY/AQbubrZsgyUOZj62U= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=4.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,SPF_SOFTFAIL autolearn=no version=3.3.2 |
X-HELO: | smtp.ht-systems.ru |
Date: | Fri, 17 Jul 2015 05:30:47 +0300 |
From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
Reply-To: | cygwin AT cygwin DOT com |
Message-ID: | <1654709150.20150717053047@yandex.ru> |
To: | "John Hein" <3fbmqnhaz4 AT snkmail DOT com>, cygwin AT cygwin DOT com |
Subject: | Re: --line-regexp option with null data |
In-Reply-To: | <6138-1437098652-808922@sneakemail.com> |
References: | <CAAXzdLWo4nvaJBMOBYsOYeCdrgw_O=8CM_H_kwfxnU=AqnuOjA AT mail DOT gmail DOT com> <6138-1437098652-808922 AT sneakemail DOT com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id t6H2ZrwS003482 |
Greetings, John Hein! > cygwin grep is detecting the input as binary which seems to be > overriding the 'match the whole line' behavior of --line-regexp. Get > rid of --quiet to see that. > That does seem like a bug in the cygwin implementation of grep to me. Linux grep will do the same. null byte = not a text. Wrong encoding, not matching locale = not a text. This is an upstream decision. It is arguable consistent… on Linux. On Windows, of course, this is not the case. > As a workaround for this simple example, you can add -a (aka --text) > to force it to treat the input as text. -- With best regards, Andrey Repin Friday, July 17, 2015 05:29:11 Sorry for my terrible english...
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |