{"thread":{"id":"29633","subject":"problem with git grep -P","startedAt":"2012-02-15T13:15:00Z","lastAt":"2012-02-15T13:15:00Z","messageCount":1,"participants":["Zbigniew Jędrzejewski-Szmek"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"184762","messageId":"4F3BAFD4.7080209@in.waw.pl","threadId":"29633","inReplyTo":null,"subject":"problem with git grep -P","fromName":"Zbigniew Jędrzejewski-Szmek","fromEmail":"zbyszek@in.waw.pl","sentAt":"2012-02-15T13:15:00Z","receivedAt":"2012-02-15T13:15:00Z","isPatch":false,"sender":{"key":"zbyszek@in.waw.pl","avatar":"https://avatars.githubusercontent.com/u/349618?v=4"},"body":"Hi,\nI'm not getting output from git grep -P. Simplified test case:\n\n$ git grep -P '^ ' t/t4012-diff-binary.sh\n(nothing)\n\n$ git grep -E '^ ' t/t4012-diff-binary.sh\nt/t4012-diff-binary.sh: a |    2 +-\nt/t4012-diff-binary.sh: b |  Bin\nt/t4012-diff-binary.sh: c |    2 +-\nt/t4012-diff-binary.sh: d |  Bin\nt/t4012-diff-binary.sh: 4 files changed, 2 insertions(+), 2 deletions(-)\nt/t4012-diff-binary.sh: binfile  |   Bin 0 -> 1026 bytes\nt/t4012-diff-binary.sh: textfile | 10000 +++++++++++++++++++++++++++++++\n\nI would expect -P to give the same results as -E.\n\nAm I missing something special about pcre?\n\n$ git --version\ngit version 1.7.9.5.g1210a\n(AFAICT this hasn't changed since grep -P was merged)\n\nI have libpcre3 8.12-4 from debian.\n\n--\nZbyszek\n"}]}