5 #echo parm original is: $parm
6 # turn the form that is just two characters of /X into X:/.
7 parm2=$(echo $parm | sed -e 's/^\/\([a-zA-Z]\)$/\1:\//g')
9 # turn the msys path form into an msdos style path for the drive letter.
10 parm3=$(echo $parm2 | sed -e 's/^\/\([a-zA-Z]\)\//\1:\//g')
12 # rip off any slashes on the end, if they aren't too close to a colon.
13 parm4=$(echo $parm3 | sed -e 's/\([^:]\)\/*$/\1/g')
15 # turn linux forward slashes into dos backward slashes.
16 parm5=$(echo $parm4 | sed -e 's/\//\\/g')
17 #echo "chewed parm5 is: $parm5"
19 $WINDIR/explorer "$parm5"