> I used to be able to
> ack some-text -ri --ignore-dir={node_modules,build} --ignore-file={ext:sql,
> is:app.js} .
There’s never been anything in ack to allow or disallow that. Those sorts of
expansions are probably done in the shell.
For example, try this:
$ echo foo={x,y,z} bar={a,b,c}
foo=x foo=y foo=z bar=a bar=b bar=c
That’s the shell expanding those, not ack.
If you’re often doing those sorts of ignores, put them in an .ackrc.
—ignore-dir=node
—ignore-dir=build
—ignore-file=ext:sql
—ignore-file=is:app.js
You can put them in ~/.ackrc in your home directory, or you can put an .ackrc
at the top of your project directory. The project-level .ackrc gives you more
flexibility.
As an aside: You don’t need the -r. That’s ack’s default.
Andy
--
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.