🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #37871

Re: TOS bugs. Disk related.

#37871
From: Ignac Kolenko
Date: Sun, 09 Apr 1989 06:50
43 lines
2768 bytes
In article <8170@chinet.chi.il.us> saj@chinet.chi.il.us (Stephen Jacobs) writes:
>   This brings up the question of where a program really should search for its
>resource file.  The question doesn't have a self-evident answer.  As stated,
>present behavior seems to be 1)current directory; 2)A:\.  On the surface, it
>looks reasonable to search the path, but suppose there's another resource 
>file with the same name earlier in the path?  (this is easy to do while 
>programming--one tends to experiment in subdirectories).  So maybe find the
>first program in the path with the same name as the program doing the search,
>and look for the resource in the directory that contains it.  Or maybe there 
>should be an environment variable (like PATH=) (maybe RSPATH=  ?).  Anyone
>have any strong feelings?
>                                  Steve J.

as far as i have heard, tos 1.4 is supposed to search the PATH= environment
variable to do a resource load. i think this is why it searched the current
directory and then drive A for resource files: the default path for the
older tos'es was PATH=<0>A<null termination>. thus, the current directory and
drive A was searched by TOS. i haven't actually tried, but i think that
setting up a proper PATH= search path should properly search for resource
files for any file.

is this true?? has anyone tried this using the older tos 1.0, or the newer
tos 1.4??? i've been using tos 1.4 with gulam (since laser C doesn't run
with tos 1.4, and the atari resource construction set CANNOT, i repeat,
CANNOT find it's resource file using the PATH= variable under gulam. 
can anyone out there confirm this??? i don't want to clutter *every* 
subdirectory on my harddrive with RCS2.RSC and its corresponding configuration
file.

(as an aside, why didn't atari include the resource file *inside* the 
resource construction set program itself. the program includes an option
to create *.RSH files, so why didn't atari use this option. this would save
plenty of hassle regarding the searching for the resource file!!!)

oh well, enough for now!				:-)



-- 
Ignac A. Kolenko (The Ig)          watmath!watcgl!electro!ignac      

"Those who can't, criticize" (author unknown)
"ain't it ironic that according to Rushton, Suzuki is right!" 
Technical Details
Message-ID: <468@electro.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watcgl!electro!ignac
References: <763@stag.UUCP> <1426@atari.UUCP> <460@electro.UUCP> <1435@atari.UUCP> <465@electro.UUCP> <8170@chinet.chi.il.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watcgl!electro!ignac
From: ignac@electro.UUCP (Ignac Kolenko)
Newsgroups: comp.sys.atari.st
Subject: Re: TOS bugs. Disk related.
Message-ID: <468@electro.UUCP>
Date: 9 Apr 89 06:50:09 GMT
References: <763@stag.UUCP> <1426@atari.UUCP> <460@electro.UUCP> <1435@atari.UUCP> <465@electro.UUCP> <8170@chinet.chi.il.us>
Reply-To: ignac@electro.UUCP (Ignac Kolenko)
Organization: Electrohome Ltd., Kitchener, ON
Lines: 43