delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/13/14:04:38

Date: Wed, 13 Dec 2000 20:57:16 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: gjs AT averstar DOT com
Message-Id: <2593-Wed13Dec2000205715+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp AT delorie DOT com
In-reply-to: <3A37A83C.F591E74B@averstar.com> (message from George Snyder on
Wed, 13 Dec 2000 11:47:56 -0500)
Subject: Re: Current Directory Switches to Short Format on NT
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1001213134451 DOT 11254Y AT is> <3A37A83C DOT F591E74B AT averstar DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Wed, 13 Dec 2000 11:47:56 -0500
> From: George Snyder <gjs AT averstar DOT com>
> 
> I don't think a test case compiled with DJGPP would necessarily demonstrate the
> problem I described.  That is: after running a DJGPP program (such as ls.exe), the
> value of "current directory" in the NT environment has changed in such a way that
> *other programs* malfunction.  This makes it impractical to use the DJGPP tools in
> a DOS window or script where such an application may be invoked.

We cannot do anything about NT's misfeatures and in particular its
evident dislike of DOS programs.

There is a way to reconstruct the original long file name given its
8+3 alias (DJGPP has a library function _truename which does that).
Programs which depend on long names should call the OS service which
provides that.  If they don't, they will fail after any DOS program
which runs in the DOS box.

> In my case, the main application in question is Continuus/CM, a widely used
> configuration management system from Continuus Software Corporation.  It fails
> because it cannot find a project in its database which corresponds to the (short
> format) current directory name.  Granted, the application ought to make sure it has
> the long format directory name before looking it up; that's a bug.

Yes, that's a clear bug.

> If there is a way to prevent the NT environment's "current directory" setting from
> being changed by running a DJGPP program, that would be ideal.

I don't know of any.  If you find out, please tell.

- Raw text -


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