Jeremy Dunck Jeremy Dunck - 2 years ago 55
Perl Question

Where should I put the ack configuration file on Windows?

I'm using ack (the grep replacement) on Windows XP under Strawberry Perl. Where should the .ackrc config file be placed, since ~/.ackrc is not reasonable on Windows?

Answer Source

For windows (MSWin32, anyway), ack looks in the following places and uses the first file found:


All but the first are subject to glob-expansion, so watch out for meta-characters in your environment variables.

When not on windows, HOME and USERPROFILE are replaced by ~ and HOME, respectively.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download