> How do I get these values: 'U:\msys\1.0', 'U:\MinGW'?
> For now three solutions come to mind: edit msys.bat or parse the second line of 'set' command output
> $ set
> or parse the 'mount' command output
You're overthinking it. Path translation is MSYS' bread and butter.
msysroot=`cd / && pwd -W`
mingwroot=`cd /mingw && pwd -W`