Документ взят из кэша поисковой машины. Адрес оригинального документа : http://crydee.sai.msu.ru/ftproot/pub/misc/doc/os2.hints/libpath
Дата изменения: Wed Mar 1 20:15:46 1995
Дата индексирования: Sun Apr 10 17:06:03 2016
Кодировка:
From ns.itep.ru!Radio-MSU.net!news.dfn.de!darwin.sura.net!news.larc.nasa.gov!ames!news.hawaii.edu!news Wed Mar 1 20:15:46 1995
Newsgroups: comp.os.os2.announce
Path: ns.itep.ru!Radio-MSU.net!news.dfn.de!darwin.sura.net!news.larc.nasa.gov!ames!news.hawaii.edu!news
From: mikel@networx.com
Subject: WARP TIP: Dynamically altering the LIBPATH path
X-Nntp-Posting-Host: newton.ifa.hawaii.edu
Message-ID:
Followup-To: comp.os.os2.misc
Sender: news@news.hawaii.edu
Organization: University of Hawaii
Date: Fri, 24 Feb 1995 04:18:18 GMT
Approved: tholen@newton.ifa.hawaii.edu
Lines: 38

Submitted by: Mike Lempriere (mikel@networx.com)
Source: Mike Lempriere (mikel@networx.com)
Date received: 1995 February 23
Date posted: 1995 February 23
-------------------------------------------------------------------------------
From OS/2 Magazine, March '95 issue (I tried, it works!):

Undocumented OS/2 Warp function

A pair of environment variables were added to Warp that are
not contained in the Warp on-line documentation. SET BeginLibPath=
and SET EndLibPath= provide the capability to dynamically alter the
current session's value of LIBPATH as it is defined in CONFIG.SYS.
Both SET statements are followed by one or more path names that are
to be inserted into the beginning and end of the LIBPATH string for
the current session, respectively.
These two environment variables are handled uniquely by CMD.EXE.
This fact has special significance to a REXX programmer who wants to
either set or retrieve and parse these two variables.
Although both of the environment variables can be set using the
VALUE() function, they will not serve their intended purpose because
the VALUE() function was not updated to include the special use that
was intended for these values. Therefore, contrary to the
recommended use of a REXX function to set an external value (instead
of passing the equivalent command to CMD.EXE), you have no
alternative if it is necessary to set either environment variable
from within a REXX program other than to pass the SET command to
CMD.EXE.
The string that is returned from SET BEGINLIBPATH will not
contain any spaces before or after the equal sign
(SET BEGINLIBPATH=?:\...), whereas the result returned by a SET
command by itself will contain a space both before and after the
equal sign (SET BEGINLIBPATH = ?:\...).
-------------------------------------------------------------------------------
Dave Tholen moderator for comp.os.os2.announce
Institute for Astronomy Internet: tholen@newton.ifa.hawaii.edu
2680 Woodlawn Drive
Honolulu, HI 96822 Astronewsbyte: 18th trans-Neptunian object found