Mo DeJong wrote:
> Hi all
> While trying to get a project to build with mingw (2.0) + msys (1.0.8)
> I ran into some problems that seem like bugs, so I figured I ask about
> them here.
> The first problem has to with path names of arguments. When a sh script
> tries to execute "javac /d/src/File.java", the file name gets passed to javac
> as D:/src/File.java. Trouble is, javac pukes on that because it only understands
> the '\\' character as a path separator. This problem only shows up in the
> jdk1.1.8 version of javac, later versions work with both, but still it is an issue.
> Is there some env var that I could set to get the converted path to use '\\'
> instead of / as the path separator?
> I decided to try to work around this first problem by writing a script
> that used some sed calls to convert Msys paths to Win32 paths before
> doing the exec. That would have worked, except now I am running into
> another problem/bug. It seems that exec does not think a path that
> starts with D:/ is a fully qualified path. Here is the error I am seeing.
> % cat execme.sh
> echo "not to exec \"$@\""
> eval exec $@
> % sh execme.sh /d/Cygwin/home/Default/project/jdk1.1.8/bin/javac -g conftest.java
> now to exec "/d/Cygwin/home/Default/project/jdk1.1.8/bin/javac -g conftest.java"
> % sh execme.sh d:/Cygwin/home/Default/project/jdk1.1.8/bin/javac -g conftest.java
> now to exec "d:/Cygwin/home/Default/project/jdk1.1.8/bin/javac -g conftest.java"
> execme.sh: /d/Cygwin/home/Default/project/tcljava/d:/Cygwin/home/Default/project/jdk1.1.8/bin/javac: No such file or directory
> execme.sh: exec: /d/Cygwin/home/Default/project/tcljava/d:/Cygwin/home/Default/project/jdk1.1.8/bin/javac: cannot execute: No such file or directory
> Any ideas how I could work around this second issue?
I'll take a look at it tomorrow. I have no work around at present.