Open/ed now has a PATH command for setting the directories to search for macros.
It is analogous to $PATH in shell.
Released version :
------------------
20.12.20
This is a supplementary release after the FCS release of 20.12.01
New features.
-------------
Open/ed now has a PATH command for setting the directories to search for macros.
It is analogous to $PATH in shell.
The private and public macros directories are still used as names but they have nol
significance ; all macro directories are controlled by how you set PATH.
Discussion
----------
This release is primarilly for macro PATH.
Command PATH
Description Print or set the macro search path.
Abbreviation PAT
Synonym None
Syntax PATH [ dir_paths | List | Default ]
Block pointer Not used.
Print or set the macro search path.
The macro search path is a colon separated list of directories to search for
macros.
When you execute a macro, Open/ed sequentially searches each of the directories
for the macro name ending in .ned. When it is found the macro is initiated and
no further searching takes place.
The default directories for macros are :
%private.macros% ${HOME} / OpenEd / macros
%public.macros% /usr / local / OpenEd / macros
Each entry in the list must be a directory, or an Open/ed variable in %'s containing
a single directory, or a single '*' which indicates the current directory.
The %path% variable has the same functionality. You can use %path% as a variable
and you can set it with a LET command.
PATH
Without options, the PATH command will print your current path.
: path
%private.macros%:%public.macros%
PATH directory_list
Set the path with a colon ':' separated list of directories. Each entry
can be a directory or an Open/ed variable that contains the name of a
directory, or a *. A variable can not be a list. i.e. it can not contain a
colon. You can not use %path% in the directory list.
This example sets the macro path to the current directory and then the
standard directories.
: path *:%private.macros%:%public.macros%
PATH Default
Sets the default path which is %private.macros%:%public.macros%
PATH List
This will list each path directory one at a time.
If your path has Open/ed variables these will be decoded in the second
column. It will also show your access permissions to each directory and a
diagnostic message such as when the directory does not exist.
Program options
---------------
No change.
Commands
--------
New
---
PATH [ ... ]
Changes
-------
LEARN PATH [ ... ]
MAC LIST ( now defaults to the current directory ).
WHICH behaviour is updated.
PATh and PAGe are 3 letter abbreviations.
Removed
-------
PAUSE
Modes
-----
MACHERE is deprecated.
Functions
---------
None
----
Changes
-------
None.
Variables
---------
New variables :
%path%
%learn.path%
Removed variables :
None.
Constants
---------
No change.
Maths operators
---------------
None.
Symbols
-------
No change.
Macros
------
No change.
Screen mode window.
-------------------
No change.
Menus
-----
The Macros pull down menu has had a few small changes.
More is needed.
Keyboard
--------
No change.
Help.
-----
PATH help file added.
Scripts
-------
No change.
Error codes
-----------
No change.
Bug fixes
---------
None.
Source code Stats
-----------------
Open/ed Rev 20, at 20.12.20
ned Total size is 85080 lines, 3M bytes, averaging 40 bytes per line.
gstlib Total size is 12047 lines, 417K bytes, averaging 34 bytes per line.
curwin Total size is 6279 lines, 234K bytes, averaging 37 bytes per line.
gpl Total size is 10321 lines, 316K bytes, averaging 30 bytes per line.
include Total size is 4493 lines, 202K bytes, averaging 45 bytes per line.
Grand total 118207 lines.
1123 additional lines.
Other
-----
--------------------------------------------------------------------------------