Mail Archives: djgpp-workers/2001/04/14/17:13:40
According to Eli Zaretskii:
>
> > From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
> > Date: Sat, 14 Apr 2001 20:58:14 +0200 (MEST)
> >
> > Ok. It seems that the stub is looping over other environment variables
> > after the PATH is exhausted.
> >
> > If I add a environment variable ARNE=asas, I get a call to
> > truename("ARNE=asas\CWSDPMI.EXE")!
>
> I don't understand how does that happen. According to the code of
> load_dpmi in stub.asm, it should try all the directories in PATH, and
> if that fails (as in your case) try CWSDPMI.EXE with no leading
> directories, i.e. from the current working directory. Only if that
> fails (meaning there's no CWSDPMI anywhere), will it go to the other
> environment variables.
>
> But in your case, it does find CWSDPMI on its last attempt, so it
> should do a RET before going to other environment variables. What am
> I missing?
What I'm seeing is that it tries the different parts from PATH then
other environment variables and last current directory.
So it's implying the code is in fact going through other environment
variables before current directory.
Right,
MartinS
- Raw text -