I'm writing cross-platform scripts that are executing utilities and some of them are windows executables.
I would like to find a solution that would not require me to prepend the command line with wine when I run from OS X.
I know that on Windows it is possible to define executable files based on file extension but I would like to know if this is possible to do on OS X and how.
I am open to suggestions ;)
#!/bin/bash
path_to_wine=/some/path/here ./path_to_wine $1 exit 0
Make sure to chmod +x your shell script.
– Harv Apr 07 '11 at 07:54