I already put this on the forum, but here it is. Useful if you want to work out how to make other console programs run properly from cygwin. Note that is uses Bash shell arrays:

 #!/bin/bash

args=(“$&quot;)<br /><br />for (( i = 0 ; i &lt; ${#args[]} ; i++ ))
do
    x=”${args[$i]}”
    x=”${x///cygdrive/c/c:}”
    x=”${x////\}”
    new_args[$i]=”$x”
    echo “${args[$i]} -> ${new_args[$i]}”
done

#echo “/cygdrive/c/Program Files/Prince/Engine/bin/prince.exe” “${new_args]}&quot; 1&gt;&amp;2<br />&quot;/cygdrive/c/Program Files/Prince/Engine/bin/prince.exe&quot; &quot;${new_args[}”