delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/09/04/04:01:11

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 48481BYA2093292
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=sPEEfL7d
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DCD0386100B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1725436869;
bh=Tf2tpzyY2N4JX630/m9UiWcXz7bQgoTf2OPHdOUZMsk=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=sPEEfL7d/MU5i2IcfR2rAbRwsVJ2XSRLrOPwpheEcHnPw+aexorHox0dWq9vAs8AZ
15hwxuRzeRAdTbu0w18coAKYn1B0GGWo4NsUGtDfPrIMs5vL5OcQjhOi3Q75PVgrez
cZq/TCWo6O2f379BIVH2Tn4nmsMSm7Tl6PuaEI0M=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3E5753858D29
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3E5753858D29
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725436786; cv=none;
b=ah5axkavSB2uTTtV5gpHJcRl/TGYf89YW+xtp7i34nU+8jmrkTHhqj7iXgKCYmAHvYQW+jyBacC31fJH+O8F+xa2PR/EC078e6jcd/ftjmIBU8Tt89zlF8zkh7wqzMCU1puLb4PdGI+mhfOFes8A5wAFCTaDxsIOfj3MkNMGYHA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1725436786; c=relaxed/simple;
bh=TepWvb2w2pl2/PRQu9Z78VIOTsjfgG1RwKz13/VmHAs=;
h=DKIM-Signature:Date:To:From:Subject:Message-ID:MIME-Version;
b=o/YAj6PFsHw9mmICR42bXBxziU1ohN0GJevInK2B0nVC+sw1mfgkfbJTH0dfWNBwregUHl/JYjYv/ni2TmboSw9F2tq44qOa+YdXYOZCdEw1B/hpWensjPH1hfKhCeof7XcZGp+tC7CzbGgO0w21fmzw3oh9hTqxTjS+1Ai3MRE=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Wed, 04 Sep 2024 07:59:37 +0000
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Fw: Re: case-insensitive filename comparisons
Message-ID: <LmNF0-Eox1IFJT7Ow_uXxWjLtTbDtPSqmzxACFa8dsZOy4P16g4hLz-ID52sd87M4hHgD5jsrbfPzo10pTvgkQXCtXfkZ8YSl7UhkhuaNnk=@proton.me>
In-Reply-To: <gGvePRi--iH_bXQtTJvckwSNra3egzrayBZNZCRAYy4tT50AVLpowSZinZQLvBV6gIJswPkJd0vKAnlI1cmwe5TcdzGmbVmOmycQT-Y49Cc=@proton.me>
References: <SA6PR21MB418042E1047C318B59BAB072C7932 AT SA6PR21MB4180 DOT namprd21 DOT prod DOT outlook DOT com>
<gGvePRi--iH_bXQtTJvckwSNra3egzrayBZNZCRAYy4tT50AVLpowSZinZQLvBV6gIJswPkJd0vKAnlI1cmwe5TcdzGmbVmOmycQT-Y49Cc=@proton.me>
Feedback-ID: 65268012:user:proton
X-Pm-Message-ID: d5292ae8a5be9dc4069ba6684119166dfd72b9cc
MIME-Version: 1.0
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, RCVD_IN_MSPIKE_H3,
RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jim McNamara via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jim McNamara <jmcnamara10001 AT proton DOT me>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>





Sent with Proton Mail secure email.

> Hi Rich-
> 
> I just use AI for this kind of thing these days.
> Just make a quick workaround script.
> 
> Like this.
> 
> grep -r 'Beeping' testdir/ | awk -F: '/\.txt$/ {print}'
> 
> thanks,
> jim
> 
> 
> 
> 
> Sent with Proton Mail secure email.
> 
> 
> On Tuesday, September 3rd, 2024 at 9:13 AM, Rich Draves via Cygwin cygwin AT cygwin DOT com wrote:
> 
> > I often use grep -r --include. But it has a really annoying problem - the comparison of the filename is case-sensitive. The -i option seems to apply only to the regex not the filename matching.
> > 
> > For example, I have many files named virtualenvironment.ini. But unfortunately, sometimes it is virtualEnvironment.ini, VirtualEnvironment.ini, etc.
> > 
> > Grep -r --include=virtualenvironment.ini skips the latter files. As a work-around, I use --include="[Vv]irtual[Ee]nvironment.ini" but this is cumbersome and not a complete solution.
> > 
> > Because Windows is case-insensitive/case-preserving, I think the Cygwin filename matching should also be case-insensitive. Am I missing something here?
> > 
> > Thanks,
> > Rich
> > 
> > --
> > Problem reports: https://cygwin.com/problems.html
> > FAQ: https://cygwin.com/faq/
> > Documentation: https://cygwin.com/docs.html
> > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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