I have found that if sh.exe is used without the rest of msys being available, it has a spurious dependence on the etc directory. This result of this is that when the ../etc directory exists, the sh.exe program runs correctly, even if the ../etc directory is empty. Without the ../etc directory, sh.exe fails to run.
The attached zip file shows this:
* Unzip file
* run test2\bin\sh.exe
* delete test2\etc directory
* run test2\bin\sh.exe <--- This will fail.
Test setup: Files are from latest stable MinGW installation. Running on Windows 7 32bit
I cannot upload zip file due to 256k limit.
To create situation, create directories and copy files from msys/1.0/bin/ as follows:
test2/
test2/etc/
test2/bin/
test2/bin/msys-1.0.dll
test2/bin/msys-regex-1.dll
test2/bin/msys-termcap-0.dll
test2/bin/sh.exe
I have uploaded the zip file at http://ozhiker.com/mingw/test2.zip
This is already resolved in CVS.