TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-410
#USELIST Built-In Variable
#USELIST Built-In Variable
Use #USELIST to manage the list of directory variables that you commonly use. If
TACL cannot find a specified variable in your home directory, it searches the
directories named in the use list.
Result
#USELIST returns a space-separated list of full path names of the directories in your
use list.
Considerations
•
When you first log on, #USELIST is initialized to
: :UTILS.1 :UTILS.1:TACL.1
•
The use list can contain up to 100 directories.
•
The directory variable levels you specify in #SET #USELIST become the new use
list; any previous contents are lost. Unlike the USE command, #SET #USELIST
does not automatically include directories. Using #SET #USELIST with no
parameters removes all directories from the use list; if you do this, you no longer
have access to the commands and functions in :UTILS:TACL.
•
To keep existing directories and add new ones at the same time, include the
existing #USELIST:
#SET #USELIST [#USELIST] :newdir
•
Use #PUSH #USELIST (or PUSH #USELIST) to save a copy of the current use
list.
•
Use #POP #USELIST (or POP #USELIST) to restore the use list from the last copy
pushed.
•
Use #SET #USELIST (or SET VARIABLE #USELIST) to assign directory names to
the use list.
The syntax of #SET #USELIST is:
directory-name
is the name of a directory variable level to be put in the use list.
#USELIST
#SET #USELIST [ directory-name [ directory-name ] ... ]