Closed ericsubach closed 7 years ago
I think the following issue is perhaps related to this issue, so I am commenting here:
ack 2.10 has defined --rr which is for .R files. If I use
--type-set=r=.R
in my own .ackrc, then "ack --r" will NOT return any expected results. Removing this line and using "ack --rr" work.
Please at least document this behavior (if not a bug) somewhere.
We need to document that you can't have types shorter than two characters.
You say it "will NOT return any expected results." What does it do?
That makes sense. FWIW, it returned nothing and reported nothing, in my case.
This will go out in 2.17_02. Thanks.
According to the manual,
--type-set
is the way to add a new type;--type-add
is only for adding to an existing type. However, it seems that only--type-add
will work.Example
.ackrc
Steps
echo 'this should work' > test.smpl
ack --simple work
. Expected output, but never got any.--type-set
to atype-add
fixes the problem.Info
Ack version 2.10, tested on both linux mint 32-bit and Windows 64-bit strawberry perl (64-bit). Everything is default except the shown
.ackrc
.