1 2 3 4 5 6
#!/bin/sh DIRNAME=$(dirname "$1") BASENAME=$(basename "$1") cd "$DIRNAME" && exec wine "$BASENAME"