delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/21/10:09:50

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=hjm+Hd5CPx8wATxV
jLJR/k84r593mRGrjbzYr3tlr19mBY3H0i3KAO68W/WqrbjbvE0DrkEVxU1I+ho1
qgHWmQUv6BRvo8oA4QqMdQ7qZZiBtqFHRxo5wKNFph2+9If5Blb7eeRiDUiEA4n7
yKeOIP24jijTSpFqB8Mjy91+WsU=
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=YPAJLD4n+XBn9ymbblLpnU
vT52I=; b=HrVkRLOacg/zy6KiaIBIWwWVNI2p8khC1zYasuVy/eGU29td9mR58j
NcGrXUGZHvvp0x4xG9+HmnxVrfx8cg7aEMuByfEvi6+B4zLCoGIbb5RMzhcX6YT7
x+WAp5L/JDgOnm7cxSyH67L3LaHxKIvAXeSj8SXc23cLQRZyvwkio=
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=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=expectation
X-HELO: mail-wm0-f49.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=zkeVjV0Rj+YOdSE9FZv07ZttDy8NIJ7OrRPva9DbejI=; b=KVk1IkWcSoNBEyC+OI46iEEENBZNxmsPYpXm5WTIKxlF8GbqW78ac6201J5E3jzofe RlCknf6pzBtk6YqQs28iPLJajvbx3hSHb4YMeBVtTG5F2U7ZSmg2EYEHCpBpKmuSWeX9 7ufjP12uGh0uw8a+8gTTF+fUuChJu4tZPmBPv7dIlw6w1IkicuevaubBuTgggZEYhh0f cNcsfgG5rvg9XeG2UCUeDk30n4lb4KLVdQ4z8shedmHFdxgfoQqyii141zq4iXa1E9k+ 1d7ATc3N4OB5Kkst8ebV0q4SwYRMo9kcNCOUO+On79CEmQDdzDmoWO6T8I/WFEQ6J2dk myBg==
X-Gm-Message-State: AD7BkJIG9PhqeC99J0j7DvXdAXXthLlTHM8JHMAK+5XxifJLLyRjrHjNV9ue5QTrmm7DgA==
X-Received: by 10.28.217.82 with SMTP id q79mr14395925wmg.29.1458569362130; Mon, 21 Mar 2016 07:09:22 -0700 (PDT)
Subject: Re: BUG: grep (GNU grep) 2.24
To: cygwin AT cygwin DOT com
References: <70C6F637A7E2844391D854CF15BB7A8F5AAA58FF06 AT TUS1XCHEVSPIN42 DOT SYMC DOT SYMANTEC DOT COM>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <56F00089.1030503@gmail.com>
Date: Mon, 21 Mar 2016 15:09:13 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0
MIME-Version: 1.0
In-Reply-To: <70C6F637A7E2844391D854CF15BB7A8F5AAA58FF06@TUS1XCHEVSPIN42.SYMC.SYMANTEC.COM>
X-IsSubscribed: yes

On 21/03/2016 14:40, Gordon Grimes wrote:
> Hi,
>
> I had generated a FILE by simply doing a 'find' on a directory and used grep to cull the results.  I wasn't working so I repeated and tried the following trivial 'grep':
>
> % wc -l FILE
> 48786
> % grep . FILE
> 2240

may be was a grep -c . FILE

>
> Very wrong.

A bit vague statement.

>
> I reverted to version 2.21 and everything now works as expected:
> % grep . FILE
> 48786
>

Without seeing the FILE content I can not bu sure, but I will bet
on LANG settings for any discrepancy in your expectation

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019