I was trying to properly quote an environment variable defined on the Windows side:
MSSDK=C:\Program Files\Microsoft SDKs\Windows\v7.0
- Just using
cygpath –u $MSSDK
resulted in a multi-line return of:
C:/Program Files/Microsoft/ SDKs/Windows/v7.0
-
cygpath –u “$MSSDK”
returned a single line:
/cygdrive/c/Progarm Files/Microsoft SDKs/Windows/v7.0
- and finally
echo \”`cygpath –u “$MSSDK”`"\”
returned the directory properly quoted:
“/cygdrive/c/Program Files/Microsoft SDKs/Windows/v7.0”