I just tried to compile msys and its application based on the mingw HOWTO wiki.
I got a couple of problems and questions. Any help is appreciated in advance.

1) "$pwd -W" works but "$/bin/pwd -W" ends with the error "/bin/pwd: invalid option -- W"

2) when building msysCORE, it has an error message in the beginning
./msysrlsbld: line 234: [: too many arguments
The good thing is that the code can be compiled regardless of such an

3) $ ./msys-build-grep grep-2.5.4.tar.bz2
*** Info: unpacking grep-2.5.4.tar.bz2
*** applying patch 80-catalan_translation.patch:
patching file po/ca.po
Hunk #1 succeeded at 74 with fuzz 2 (offset -1 lines).
(hangup here for 5 hours)

$tar -Jxf unzip-6.0-1-msys-1.0.13-src.tar.lzma
$ ./msys-build-unzip unzip60.tgz
*** Info: unpacking unzip60.tgz
*** Info: Unpacking optional bzip2 component
(hangup here for 5 hours)