pcre regexps in git?

Yasuhiro Kimura yasu@utahime.org
Fri Feb 25 00:27:22 GMT 2022


From: "Anthony Heading" <ajrh@ajrh.net>
Subject: pcre regexps in git?
Date: Thu, 24 Feb 2022 16:19:13 -0500

> Hi,
> I appreciate this is just a birthday wish-list item, but...
> 
> % git grep -P hopeful...
> fatal: cannot use Perl-compatible regexes when not compiled with USE_LIBPCRE
> 
> It would be lovely (well, at least for me) if this could work.

On my 64bit Windows 10 PC `git grep -P` works fine with both cygwin64
and cygwin32.

(Cygwin64)yasu@rolling[1011]% git --version                                                         ~/Work/zsh
git version 2.35.1
(Cygwin64)yasu@rolling[1012]% git grep -P _cygpath                                                  ~/Work/zsh
Etc/ChangeLog-4.1:      Completion/Cygwin/Command/_cygpath,
Etc/ChangeLog-4.1:      Completion/Cygwin/Command/_cygpath,
Etc/ChangeLog-4.3:      Completion/Cygwin/Command/_cygpath,
(Cygwin64)yasu@rolling[1013]%

---
Yasuhiro Kimura


More information about the Cygwin mailing list