Hi there,

Sorry to revive an ancient thread, but I'm using ack version 2.14 and when 
I try regex file matching as above I get the following:

Non-is filters are not yet supported for --ignore-dir at /usr/local/bin/ack 
line 155.
main::_compile_file_filter(HASH(0x7fb9121a7d20), ARRAY(0x7fb9140bccc8)) 
called at /usr/local/bin/ack line 946
main::main() called at /usr/local/bin/ack line 73

Was the regex file matching never fully implemented?

On Friday, May 3, 2013 at 8:43:01 AM UTC-4, Andy Lester wrote:
>
>
> On May 3, 2013, at 1:44 AM, Thameera Senanayaka <[email protected] 
> <javascript:>> wrote: 
>
> > I have directories that are named like bc0081, bc0091, bc0171 and so on. 
> Is it possible to give a pattern to --ignore-dir? I tried --ignore-dir=bc0* 
> but it doesn't seem to work. 
>
> Wait until ack 2.06.  Right now, we don't support any sort of matching 
> other than exact filenames. 
>
> After 2.06 comes out, you'll do that as: --ignore-dir=match:bc0.* or even 
> --ignore-dir=match:^bc0\d+$ 
>
> Note that --ignore-dir and --ignore-file and indeed all file-match in ack 
> is done with regular expressions, *not* with shell glob patterns. 
>
> xoa 
>
> -- 
> Andy Lester => [email protected] <javascript:> => www.petdance.com => 
> AIM:petdance 
>
>

-- 
You received this message because you are subscribed to the Google Groups "ack 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ack-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to