1#!/bin/bash 2 3xml="$1" 4shift 5 6# MSYS does unix -> windows path conversion if there is a leading / 7# but not when the argument contains a semicolon, eg: /x -> 8# C:\Mingw\msys\1.0\x so we double all leading /'s to avoid this 9 10nargs=$# 11args=() 12for ((i = 0; i < nargs; i++)) ; do 13 if [[ "$1" = /* ]] && [[ "$1" != *\;* ]] ; then 14 args[$i]="/$1" 15 else 16 args[$i]="$1" 17 fi 18 shift 19done 20 21exec "$xml" "${args[@]}" 22