Skip to content

Instantly share code, notes, and snippets.

@mcandre
Created April 26, 2013 14:42
Show Gist options
  • Save mcandre/5467825 to your computer and use it in GitHub Desktop.
Save mcandre/5467825 to your computer and use it in GitHub Desktop.
#!/bin/sh
perl /c/Chocolatey/lib/ack.1.96.2/content/ack.pl $*
@myoung34
Copy link

This doesn't work for a few reasons.
Cygwin uses /cygdrive/c for the path, and this would fail on usage such as:

$ ack a\ space\ in\ a\ string
ack.pl: space: No such file or directory
ack.pl: in: No such file or directory
ack.pl: a: No such file or directory
ack.pl: string: No such file or directory

@scraperdragon
Copy link

I believe, but have not verified that "$@" is supported in cygwin, which should return the correct space behaviour.
http://stackoverflow.com/questions/3008695/what-the-difference-between-and-in-bash

@bolpin
Copy link

bolpin commented Jan 6, 2015

it worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment