delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/04/14/15:41:12

Date: Sat, 14 Apr 2001 22:38:46 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <4331-Sat14Apr2001223845+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <200104141858.UAA17441@mother.ludd.luth.se> (message from Martin
Str|mberg on Sat, 14 Apr 2001 20:58:14 +0200 (MEST))
Subject: Re: Stub trying to find COMSPEC=A:\COMMAND.COM\CWSDPMI.EXE!
References: <200104141858 DOT UAA17441 AT mother DOT ludd DOT luth DOT se>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019