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=(“$")<br /><br />for (( i = 0 ; i < ${#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]}" 1>&2<br />"/cygdrive/c/Program Files/Prince/Engine/bin/prince.exe" "${new_args[
}”