[pcre-dev] [Bug 2279] Asking help for --include-dir successf…

Página Principal
Apagar esta mensagem
Autor: admin
Data:  
Para: pcre-dev
Assunto: [pcre-dev] [Bug 2279] Asking help for --include-dir successful usase
https://bugs.exim.org/show_bug.cgi?id=2279

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID


--- Comment #1 from Philip Hazel <ph10@???> ---
It works for me. But I can only test on a Linux box, not windows. Here is an
example: my current directory has 3 sub directories called a, b, and c; each
contains a single file also called a, b, and c:

$ ls *
a:
a

b:
b

c:
c

If I do a recursive search, it finds all the files:

$ pcre2grep -r '....' *
a/a:aaaa
b/b:bbbb
c/c:cccc

But I can use --include-dir to restrict the search to certain directories, in
this case, those not begining with 'b':

$ pcre2grep -r --include-dir='^[^b]' '....' *
a/a:aaaa
c/c:cccc

So I'm going to close this issue. If you have evidence that it doesn't work on
Windows, please re-open and I will appeal for a Windows expert to see what is
wrong.

--
You are receiving this mail because:
You are on the CC list for the bug.