How do you run ack with Strawberry

jdavidb on 2009-03-20T18:46:59

I've just introduced one of my more enlightened coworkers to ack. He thinks it'll replace Cygwin for him entirely, and possibly even his Linux box. Only problem is, he can't get it to run with Strawberry on Windows. He and I are both mainly UNIX-literate. What do we need to do to get this set up right?

(He tried editing the shebang line, but I knew that wouldn't work.)

Update: Answer: use Strawberry's cpan command to install App::Ack, and use the ack that comes with that. I'd still like to know how to make it work for the standalone ack, though, as I'd like to know how to do this for arbitrary Perl programs in general. Apparently I'm supposed to be able to do so with the PATHEXT variable and some other manipulation, but I can't quite figure it out.


pl2bat?

Aristotle on 2009-03-20T20:39:09

pl2bat?

Easy

Alias on 2009-03-25T06:53:05

> cpan install App::Ack ...
> ack ...