🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #8009

Re: LABEL/directory confusion - genuine bug in MSDOS 6.0 ?

#8009
From: Pamela Kane
Date: Sun, 27 Feb 1994 12:59
15 lines
1918 bytes
OK...Forget the few hours with DEBUG.  A simple INT 21 intercept program 
points up the bug.  LABEL gets the current directory with INT 21 function 
47, which does not give drive and root, only path.  This string is fed 
through the undocumented function 60 to get the fully resolved 
drive:path.  (This will account for a SUBST or ASSIGNED or JOINED 
drive.)  If there is a subdirectoy which has the same name as the 
current directory, that name is reported back as the fully resolved path 
and not the current directory.  Try it yourself. Switch to the 
subdirectory, and type TRUENAME "TEMP".  If there is a TEMP in the 
subdirectory the return is C:\TEMP\TEMP.

Naturally when the LABEL program switches back to the directory from 
which it was called, it switches to the wrong directory.  This isn't a 
bug, it's a feature!  I guess no one at MS has ever made a subdirectory 
with the same name as the parent and used the LABEL program.  
Technical Details
Message-ID: <2kq5g0$rq@marlin.ssnet.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!fauern!news.th-darmstadt.de!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!gatech!udel!ssnet.com!ssnet.com!not-for-mail
References: <CLtt1E.Lvv@qdpii.ind.dpi.qld.gov.au> <jcmorris.762278419@mwunix> <2koj3f$67q@harbinger.cc.monash.edu.au> <2kq2ej$hu@marlin.ssnet.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f6aa,adccdfccfe3eda50
X-Google-Attributes: gid10f6aa,public
X-Google-Thread: 10d683,adccdfccfe3eda50
X-Google-Attributes: gid10d683,public
X-Google-ArrivalTime: 1994-02-27 04:59:44 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!fauern!news.th-darmstadt.de!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!gatech!udel!ssnet.com!ssnet.com!not-for-mail
From: panda@marlin.ssnet.com (Pamela Kane)
Newsgroups: comp.os.msdos.programmer,aus.computers.ibm-pc
Subject: Re: LABEL/directory confusion - genuine bug in MSDOS 6.0 ?
Date: 27 Feb 1994 07:59:44 -0500
Organization: SSNet -- Public Internet Access in Delaware!
Lines: 16
Message-ID: <2kq5g0$rq@marlin.ssnet.com>
References: <CLtt1E.Lvv@qdpii.ind.dpi.qld.gov.au> <jcmorris.762278419@mwunix> <2koj3f$67q@harbinger.cc.monash.edu.au> <2kq2ej$hu@marlin.ssnet.com>
NNTP-Posting-Host: marlin.ssnet.com
X-Newsreader: TIN [version 1.2 PL2]