From: "Zbigniew Jędrzejewski-Szmek" <zbyszek@in.waw.pl>
To: git@vger.kernel.org
Cc: "Michał Kiedrowicz" <michal.kiedrowicz@gmail.com>
Subject: problem with git grep -P
Date: Wed, 15 Feb 2012 14:15:00 +0100 [thread overview]
Message-ID: <4F3BAFD4.7080209@in.waw.pl> (raw)
Hi,
I'm not getting output from git grep -P. Simplified test case:
$ git grep -P '^ ' t/t4012-diff-binary.sh
(nothing)
$ git grep -E '^ ' t/t4012-diff-binary.sh
t/t4012-diff-binary.sh: a | 2 +-
t/t4012-diff-binary.sh: b | Bin
t/t4012-diff-binary.sh: c | 2 +-
t/t4012-diff-binary.sh: d | Bin
t/t4012-diff-binary.sh: 4 files changed, 2 insertions(+), 2 deletions(-)
t/t4012-diff-binary.sh: binfile | Bin 0 -> 1026 bytes
t/t4012-diff-binary.sh: textfile | 10000 +++++++++++++++++++++++++++++++
I would expect -P to give the same results as -E.
Am I missing something special about pcre?
$ git --version
git version 1.7.9.5.g1210a
(AFAICT this hasn't changed since grep -P was merged)
I have libpcre3 8.12-4 from debian.
--
Zbyszek
reply other threads:[~2012-02-15 13:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F3BAFD4.7080209@in.waw.pl \
--to=zbyszek@in.waw.pl \
--cc=git@vger.kernel.org \
--cc=michal.kiedrowicz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.