X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fwinders%2Fexploder.sh;h=6199105d10830b868d4ff7ab6dcbb972f8a88000;hb=ab2a48e90c0f3778c267862bc125d5f2d4b3bb73;hp=56594bdf72bbe79ae2e1f20531200e2eca0e623d;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/scripts/winders/exploder.sh b/scripts/winders/exploder.sh index 56594bdf..6199105d 100644 --- a/scripts/winders/exploder.sh +++ b/scripts/winders/exploder.sh @@ -2,19 +2,25 @@ parm=$1 -#echo parm original is: $parm +#echo original parm is: $parm # turn the form that is just two characters of /X into X:/. -parm2=$(echo $parm | sed -e 's/^\/\([a-zA-Z]\)$/\1:\//g') -#echo parm2 is $parm2 +parm=$(echo $parm | sed -e 's/^\/\([a-zA-Z]\)$/\1:\//g') +#echo parm now is $parm # turn the msys path form into an msdos style path for the drive letter. -parm3=$(echo $parm2 | sed -e 's/^\/\([a-zA-Z]\)\//\1:\//g') -#echo parm3 is $parm3 +parm=$(echo $parm | sed -e 's/^\/\([a-zA-Z]\)\//\1:\//g') +#echo parm now is $parm +# turn the form that is /cygdrive/X into X:/. +parm=$(echo $parm | sed -e 's/^\/cygdrive\/\([a-zA-Z]\)$/\1:\//g') +#echo parm now is $parm +# turn regular cygwin paths into msdos style paths for the drive letter. +parm=$(echo $parm | sed -e 's/^\/cygdrive\/\([a-zA-Z]\)\//\1:\//g') +#echo parm now is $parm # rip off any slashes on the end, if they aren't too close to a colon. -parm4=$(echo $parm3 | sed -e 's/\([^:]\)\/*$/\1/g') -#echo parm4 is $parm4 +parm=$(echo $parm | sed -e 's/\([^:]\)\/*$/\1/g') +#echo parm now is $parm # turn linux forward slashes into dos backward slashes. -parm5=$(echo $parm4 | sed -e 's/\//\\/g') -#echo "chewed parm5 is: $parm5" +parm=$(echo $parm | sed -e 's/\//\\/g') +#echo "totally chewed parm is: $parm" -$WINDIR/explorer "$parm5" +$WINDIR/explorer "$parm"