🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.apps
Article #4307

Re: Updating of "LIBPATH" after config.sys possible/not possible?

#4307
From: David Charlap
Date: Thu, 01 Feb 1996 21:05
38 lines
2090 bytes
Jason J. Lane <jlane@brownstone.com> wrote:
>
>There exists two (undocumented?) environment variables in OS/2 that
>will let you change the LIBPATH on the fly.

They are documented, but it seems only in the programmer's
references.

They do NOT let you change LIBPATH on the fly.  One is searched before
the real LIBPATH and the other is searched after.

They are NOT environment variables.  You can not view their contents
from the command line.  And their sizes are limited.

>They are BEGINLIBPATH and ENDLIBPATH.  They only change the behavior
>of LIBPATH for the duration of that command window.  What you can do
>is modify your CONFIG.SYS like the following:
>
>rem LIBPATH=.;C:\OS2;...
>SET ENDLIBPATH=.;C:\OS2;...

You don't want to do this.  You can really screw yourself up doing
this, since it then becomes possible to wipe out your entire LIBPATH
for a session.

And it may not work.  The extended libpath segments have a limited
size.

A better idea is to keep your core DLLs on the real LIBPATH and use
the beginning and ending LIBPATHs for the directories that you may or
may not want on it at various times.

---------------------+--------------------------------------------------------
David Charlap        | The contents of this message are not the opinions of
david@visix.com      | Visix Software, or of anyone besides myself.
Visix Software, Inc. +------------------------------------------------+-------
Member of Team-OS/2  | Quantum mechanics: The dream stuff is made of. |
---------------------+------------------------------------------------+
Technical Details
Message-ID: <4er9v6$hsq@shelby.visix.com>
Path: arc1-ca.pugleaf.net!shelby.visix.com!david
References: <4ep28c$7u3@harbinger.cc.monash.edu.au> <DM3pE3.G4s@gateway.platinum.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!shelby.visix.com!david
From: david@visix.com (David Charlap)
Newsgroups: comp.os.os2.apps,comp.os.os2.setup.misc,comp.lang.rexx,comp.os.os2.misc
Subject: Re: Updating of "LIBPATH" after config.sys possible/not possible?
Date: 1 Feb 1996 21:05:42 GMT
Organization: Visix Software, Reston VA
Distribution: inet
Message-ID: <4er9v6$hsq@shelby.visix.com>
References: <4ep28c$7u3@harbinger.cc.monash.edu.au> <DM3pE3.G4s@gateway.platinum.com>
NNTP-Posting-Host: celica