0
In my .ackrc file I have this line
--type-set=vm=.vm
But when I run
ack-grep --vm blah
it searches all types of files.
Neither does this work:
ack-grep blah --type-set vm=.vm
ack-grep --type-set vm=.vm blah
Why?
0
In my .ackrc file I have this line
--type-set=vm=.vm
But when I run
ack-grep --vm blah
it searches all types of files.
Neither does this work:
ack-grep blah --type-set vm=.vm
ack-grep --type-set vm=.vm blah
Why?
0
What version of ack are you using? 1.x or 2.x?
Do you have any aliases on ack? Are you invoking ack with -a
behind the scenes somehow?
I'm running ack-grep version 1.92. No aliases and no
-a
. – sean hawk – 2013-08-18T02:40:04.700Are you sure about the no
-a
? Try runningack -f
, and then tryack -f --noenv
and see if the results are different. – Andy Lester – 2013-08-18T05:11:20.597This may be better handled over on the ack-users mailing list. Also, while you're at it, upgrade to ack 2.04. – Andy Lester – 2013-08-18T05:11:55.287
Sorry, I didn't notice my
.ackrc
has a line--all
. BTW, this has nothing to do with aliases since I don't have an aliasack='ack-grep'
. Thanks! – sean hawk – 2013-08-18T12:59:17.100What I have found in the past is that people have not the
ack=ack-grep
alias, but more oftenack='ack -a'
aiias. – Andy Lester – 2013-08-18T14:48:55.887